[jboss-dev-forums] [EJB3 Development] - how the obtain the ip address of ejb server
lewis liu
do-not-reply at jboss.com
Tue Aug 9 02:08:27 EDT 2011
lewis liu [http://community.jboss.org/people/lewisl] created the discussion
"how the obtain the ip address of ejb server"
To view the discussion, visit: http://community.jboss.org/message/620025#620025
--------------------------------------------------------------
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
[http://community.jboss.org/message/620025#620025]
Start a new discussion in EJB3 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2030]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110809/37b442db/attachment.html
More information about the jboss-dev-forums
mailing list