Hi Sanders, Its a basic concept. getting the ip address is depends upon the Request object scope. By using request.getRemoteAddr() will give the request IP address.
On Fri, Feb 27, 2009 at 10:33 PM, Jacques Le Roux < [email protected]> wrote: > You have to use HttpServletRequest for that. So it depends if you have one > in your context. > http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getRemoteAddr()<http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html#getRemoteAddr%28%29> > > If the service is used in a widget screen context you should be able to get > one. http://docs.ofbiz.org/x/axE > From a job poller I guess not > > Jacques > > From: "Sanders, Brian" <[email protected]> > > When a service is called, is it possible to obtain the remote address > from either the DispatchContext or the Context? > > > > -- Thanks, Kumaraswamy.N 91-9866805250.
