[Remoting] - Re: server bind address - documentation
by ron.sigalï¼ jboss.com
Hi John,
That paragraph really is correct.
I think the point is that clientConnectAddress is only meant to be used when the client connects through a router that maps an external host name to the actual name of the actual host. The fact that clientConnectAddress is set tells the server that the host name in the InvokerLocator is *not* the real host name, thereby throwing the server into the default case of using the local host address.
The logic is
| if (serverBindAddress is set)
| use it
| else if (clientConnectAddress is not set)
| use host from InvokerLocator
| else
| use local host address
|
The local host address, by the way, is obtained by the call
| InetAddress.getLocalHost().getHostAddress()
|
which returns the IP address of the local host.
I'll try to make the paragraph clearer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4023373#4023373
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4023373
19Â years, 1Â month
[Remoting] - Re: InvokerCallbackHandler.getSessionId() ?
by ron.sigalï¼ jboss.com
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
19Â years, 1Â month