You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Soumya <so...@yahoo.co.in> on 2009/05/13 18:33:45 UTC

How to identify remote address in HTTP/LWC component

Hi folks,

I use servicemix 3.2.1 in the following way.
I have a HTTP component deployed on machine X.
It receives any xnl over http request and then forwards that xml request over ActiveMq to the LWC deployed on the second machine Y.

What I want is to log the host/IP address of the the machine from which the external http request came in. 
Is there any way how I can capture this info in the code deployed in the LWC component?

Thanks in advance!

Regards,
Soumya


      Share files, take polls, and make new friends - all under one roof. Go to http://in.promos.yahoo.com/groups/

Re: How to identify remote address in HTTP/LWC component

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Soumya,

using the HTTP component you can define your own marshaler. In this 
marshaler, you have access to the HTTP request.

You can find an example of marshaler usage here:
http://servicemix.apache.org/servicemix-http-new-endpoints.html
in the section "Using a marshaler".

Regards
JB

Soumya wrote:
> Hi folks,
> 
> I use servicemix 3.2.1 in the following way.
> I have a HTTP component deployed on machine X.
> It receives any xnl over http request and then forwards that xml request over ActiveMq to the LWC deployed on the second machine Y.
> 
> What I want is to log the host/IP address of the the machine from which the external http request came in. 
> Is there any way how I can capture this info in the code deployed in the LWC component?
> 
> Thanks in advance!
> 
> Regards,
> Soumya
> 
> 
>       Share files, take polls, and make new friends - all under one roof. Go to http://in.promos.yahoo.com/groups/

-- 
Jean-Baptiste Onofré (Nanthrax)
BuildProcess/AutoDeploy Project Leader
http://buildprocess.sourceforge.net
jb@nanthrax.net
PGP : 17D4F086