I have very recently ventured into EJB3 territory, and am working on a proof of concept port of a stand alone server. I use 4.0.5 using the webstart installer.
I hope someone here can help, as I am somewhat lost in solving the final piece of the puzzle.
The webservice calls made by the clients have to be checked using the client IP address.
But I cannot seem to find any information on Google or here about how to retrieve this information.
Is there some kind of context I can access inside my stateless session bean that contains the IP address of the sender?
Thank you very much
Yes, you could write a handler that gets access to the servlet request. This is actually a JAX-WS feature but we include it in our JAX-RPC stack as well.
call getProperty("javax.xml.ws.servlet.request") on the message context you get in the handler.