I have stateful session bean which is accessed from a Swing client. When the client connects and instansiates the bean I want to log the IP of the client. Does anyone know how I can get the client IP?
If you have access and control of the client you can change the interface to the EJB and submit the IP from the client.
Use InetAddress.getLocalHost() to get the client IP address.