13 Replies Latest reply on Jul 24, 2008 11:57 AM by Prateek Negi

    Client IP in LoginModule

    Prateek Negi Newbie

      I have the same login-module for ejb/web layer.
      I want to retrieve the clientIP in the login module.

      Is there anyway to do it ?
      I used the PolicyContext to retrieve it when the request type is http.

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

      Is there anyway to get it when the call is for a ejb ?