If I understand you correctly, you want to be able to identify the callback handler on the client from within the invocation handler on the server side. If this is what you are asking, then yes, this can be done. However, it requires a casting of the InvokerCallbackHandler added within the ServerInvocationHandler to ServerInvokerCallbackHandler, on which you can call getClientSessionId() to get the client id.
I have added a test case that demonstrates using two clients with a distinct callback handler each. The classes are: org.jboss.test.remoting.callback.pull.CallbackTestServer org.jboss.test.remoting.callback.pull.CallbackInvocationHandler org.jboss.test.remoting.callback.pull.CallbackInvocationHandler Will have to either checkout the remoting project or can browse the source at http://viewcvs.labs.jboss.com/cgi-bin/viewcvs.cgi/JBossRemoting/src/tests/org/jboss/test/remoting/callback/pull/ View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951750#3951750 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951750 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
