JBoss Community

how the obtain the ip address of ejb server

created by lewis liu in EJB3 Development - View the full discussion

In EJB 2.0 e can get Server IP address like this

 

In the ejb 2.0 ,I can get ip like this

ClientContainer container = (ClientContainer)java.lang.reflect.Proxy.getInvocationHandler(ejbHome);

           InvocationContext ctx = container.getInvocationContext();

           Invoker invoker = ctx.getInvoker();

       hostName = invoker.getServerHostName();

however, in ejb 3.0, I have no idea how to get the EJB Server ip .

 

anybody can help me?

Reply to this message by going to Community

Start a new discussion in EJB3 Development at Community