0 Replies Latest reply on Mar 2, 2015 9:52 PM by raylite3

    Auditing host name for remote EJB invocations

    raylite3 Apprentice

      Hello,

       

      I am using Wildfly 8.2.0.Final and want to access the host name in the login module that secures some SLSB. I invoke these SLSB from a standalone Java client. I was hoping that the following would let me access the request and the host name from it since Wildfly uses http-remoting. But it always returns null.

       

          HttpServletRequest request = (HttpServletRequest) PolicyContext.getContext("javax.servlet.http.HttpServletRequest")

       

      Is there a way to access the host name ? Is the PolicyContext.getContext supposed to work in this case?

       

      Thanks in advance!