I'm very new to jboss and I'm still reading documentation.
It is critical for my application that my stateful session bean knows the client ip. From what I have read until now it seems that this is not possible in a direct way (feature request incoming...).
That said, if I'm right about the direct way, what kind of indirect way would you suggest?
I could write a servlet that gets the client address and sends back its value to the ejb by means of a unique parameter that the client and the ejb have negotiated, however this seems a bit ugly to me.
As I said this is critical because I must be able to put the clients in direct communication between them.
You can add a client side interceptor that obtains the client ip from the client host and adds it to the ejb request. There is an example of a interceptor pair for encryption in the testsuite. Look at the org.jboss.test.security.interceptors package in the testsuite module and go from there.