This content has been marked as final.
Show 4 replies
-
1. Re: How to retrieve remote IP address of EJB clients?
kevinpauli Sep 11, 2007 2:03 PM (in response to kevinpauli)Bump
-
2. Re: How to retrieve remote IP address of EJB clients?
grego1 Sep 11, 2007 4:55 PM (in response to kevinpauli)I'd like the answer to this one as well...
-
3. Re: How to retrieve remote IP address of EJB clients?
grego1 Sep 12, 2007 1:11 PM (in response to kevinpauli)I figured this one out:
@In private FacesContext facesContext; ... public String someButton() { Object reqOb = facesContext.getExternalContext().getRequest(); if (reqOb instanceof HttpServletRequest) { HttpServletRequest req = (HttpServletRequest) reqOb; String remoteAddr = req.getRemoteAddr(); ... } }
-
4. Re: How to retrieve remote IP address of EJB clients?
kevinpauli Sep 13, 2007 12:22 PM (in response to kevinpauli)Thanks, but what you've done seems to be for http-based communication (i.e. web services). What I'm needing is to log the IP's of remote clients communicating via remote session bean proxies over RMI.