|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.remoting.samples.callback.CallbackClient
Sample client showing how to register for callbacks from remoting server. The callback server we will make invocations to will generate random callback messages that we can receive.
| Nested Class Summary | |
class |
CallbackClient.CallbackHandler
Our implementation of the InvokerCallbackHandler. |
| Constructor Summary | |
CallbackClient()
|
|
| Method Summary | |
void |
createRemotingClient(java.lang.String locatorURI)
Create the remoting client to use to make calls on the remoting server. |
static void |
main(java.lang.String[] args)
Can pass transport and port to be used as parameters. |
void |
makeInvocation()
Makes a call on the remoting server. |
void |
setupServer(InvokerLocator locator)
Sets up the callback server that the target remoting server can call on with the callbacks that it generates. |
void |
testPullCallback()
Shows how to register for pull callbacks and then get any callbacks that are waiting on the server. |
void |
testPushCallback()
Shows how to register for push callbacks where the server will callback on our callback handler when it generates a callback. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CallbackClient()
| Method Detail |
public void createRemotingClient(java.lang.String locatorURI)
throws java.lang.Exception
locatorURI -
java.lang.Exception
public void makeInvocation()
throws java.lang.Throwable
java.lang.Throwable
public void testPullCallback()
throws java.lang.Throwable
java.lang.Throwable
public void testPushCallback()
throws java.lang.Throwable
java.lang.Throwable
public void setupServer(InvokerLocator locator)
throws java.lang.Exception
locator -
java.lang.Exceptionpublic static void main(java.lang.String[] args)
args -
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||