-
1. Re: Identify the Clients from Server in Pull Callback Jboss
tom.elrod Jun 19, 2006 3:28 PM (in response to vasanth_java)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/ -
2. Re: Identify the Clients from Server in Pull Callback Jboss
vasanth_java Jun 20, 2006 3:24 AM (in response to vasanth_java)Thanks we got it. for further clarifications we will post.
once again thanks.