[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xmlblaster] Re: Login users information help



Zhou Dong wrote:
Hi,



    In RequestBroker.java, I modified the sessionAdded method as following :



    SessionInfo sessionInfo = e.getSessionInfo();

    Address serverAddr = sessionInfo.getConnectQos().getData().getAddress();

CallbackAddress serverCBAddr=sessionInfo.getConnectQos().getData().getSessionCbQueueProperty().getCurrentCallbackAddress();



    Then, I want to get the client’s hostname, protocol, port,etc.



I use java HelloWorld2 –session.name Jeff –client.protocol XML-RPC –xmlrpc.hostname 10.2.1.135 to connect the remote server:



The serverAddr.getType(),serverAddr.getPort(),serverAddr.getHostname() return the xmlBlaster Server’s protocol(IOR),port(3412),hostname

The serverCBAddr.getType(),serverCBAddr.getPort(),serverCBAddr.getHostname() return the client’s protocol(XML-RPC),hostname,but port is also 3412.



    How can I get the CLIENT’s protocol, hostname, port at server-side?


Hi,

i'm not sure if i got your problem, but

sessionInfo.getConnectQos().getData().getSessionCbQueueProperty().getCurrentCallbackAddress().toXml()

should show everything (or the other above methods).
I have just fixed a bug where the address is fixed (use newest cvs).

hope it helps

Marcel