How to get client IP address in remote JBoss EJB call?

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?

+3
source share
1 answer

Is it still embedded in the stream in JBoss 6.1?

    String currentThreadName = Thread.currentThread().getName();

and then analyze from there?

+2
source

All Articles