0 Replies Latest reply on Aug 9, 2011 2:08 AM by lewis liu

    how the obtain the ip address of ejb server

    lewis liu Newbie

      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?