ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kumaraswamy nandipati <kumarasw...@ecomzera.com>
Subject Re: Obtain IP address from Contexts
Date Sun, 01 Mar 2009 01:29:57 GMT
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 <
jacques.le.roux@les7arts.com> 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" <BSanders@connextions.com>
>
> 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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message