Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Pls help : How to get the client ip address in EJB

843830Mar 19 2007 — edited Apr 2 2007
Hi experts,
I need to find the ip addr of the client which makes the remote call.
I tried using
java.rmi.server.RemoteServer.getClientHost()
But it throws ServerNotActiveException .

When I tried this in RMI it works fine perfectly.
If i am right EJB is just similar to RME and it should work in it too..

Can you please help me in finding out the ip address of the client which makes the ejb call.
Thanks & Regards,
Mukunt
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2007
Added on Mar 19 2007
4 comments
615 views