How to get the server IP of the client when the StatelessBean EJB method is called via RMI / IIOP after the classic JNDI lookup
With JBoss 6.1, I tried the method java.rmi.server.RemoteServer#getClientHost, but it throws java.rmi.server.ServerNotActiveException: not in a remote call. Is there any way to get information?
java.rmi.server.RemoteServer#getClientHost
java.rmi.server.ServerNotActiveException: not in a remote call
Is it still embedded in the stream in JBoss 6.1?
String currentThreadName = Thread.currentThread().getName();
and then analyze from there?