This content has been marked as final.
Show 2 replies
-
1. Re: getting client ip address in EJB (jboss3.2.5)
stalker314314 Jul 24, 2008 11:44 AM (in response to stalker314314)to answer myself, there is a workaround - you can get client ip address in EJB when using Thread.currentThread.getName(). Thread's name contains client ip address, and it's in the form of:
RMI TCP Connection(100)-192.168.0.103
so you just have to pull out ip address from thread's name -
2. Re: getting client ip address in EJB (jboss3.2.5)
amazoone Jul 28, 2008 11:16 AM (in response to stalker314314)Hi,
you can use the InetAdress i think:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/InetAddress.html