[jboss-user] [Remoting] - Re: InvokerCallbackHandler.getSessionId() ?
ron.sigal@jboss.com
do-not-reply at jboss.com
Tue Feb 27 18:17:47 EST 2007
Hi James,
I think the reason your initial question was a bit ambiguous (besides the fact that addListener() isn't a method of InvokerCallbackHandler) might have been that, on the client side, an InvokerCallbackHandler can be reused by many Clients and callback Connectors, so it's not associated with a particular Client.
On the server side, however, when the addListener() method is called on your ServerInvocationHandler, the InvokerCallbackHandler that gets passed *is* associated with a particular call to Client.addListener(). You can get the sessionId of that Client by casting the InvokerCallbackHandler to org.jboss.remoting.callback.ServerInvokerCallbackHandler and calling its method getClientSessionId().
Hope that helps.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023358#4023358
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023358
More information about the jboss-user
mailing list