anonymous wrote : I don't remember off hand how that is done in Messaging.
The lines
| callbackServer = CallbackServerFactory.instance.getCallbackServer(serverLocator);
| client.addListener(dummyCallbackHandler, callbackServer.getLocator());
|
in JMSRemotingConnection create callbackServer as a server and then tell the server side to call it to do push callbacks. If you were just to call
| client.addListener(dummyCallbackHandler);
|
omitting the creation of callbackServer, you would be configuring for pull callbacks, with no server on the client side.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973395#3973395
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973395
What I was expecting is if I make an invocation from the server to the client as is currently the case for delivering messages to clients, then the http transport is clever enough to realise it is only allowed to make invocations from client to server, so uses some kind of polling mechanism to get messages from server to client.
This would all be insulated from the user of remoting (us) so we wouldn't have to change any code.
If this is is not the case, then it's going to be a lot of grief to change how messaging uses the remoting api to get it to work.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973391#3973391
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973391
"ovidiu.feodorov(a)jboss.com" wrote : That's not good.
|
| This is exactly what we DON'T want, a server running on the client side.
|
| The whole idea with HTTP is that the user does not need to open any inboud client-side firewal ports to receive asynchonous notifications.
|
| The remoting runtime should poll on the client side, not start a HTTP server.
Sorry - I was thinking of push callbacks. There is also a pull callback mechanism, in which the callbacks are retrieved by calling
org.jboss.remoting.Client.getCallbacks()
Which is used depends on how callbacks are configured by way of the call to
org.jboss.remoting.Client.addListener()
I don't remember off hand how that is done in Messaging.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973387#3973387
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973387
"timfox" wrote :
| I was fed up with the fact that remoting always passed in an ObjectOutput/Input Stream, so I have created new subclasses of ObjectOutput/InputStream called MessagingObjectOutput/InputStream which basically are just a thin wrapper over a straightforward DataOutput/InputStream.
| .
I don't see how this works. JMSWireFormat is called by Remoting, which passes in an InputStream/OutputStream. How do you get around the socket transport passing in Object streams? Just wondering.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973384#3973384
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973384