I am using camel-core-2.5.0.jar, camel-cxf-2.5.0.jar and cxf-api-2.2.11.jar.
I am now able to get the remoteAddress using the Request.getRemoteAddress()
method. Earlier I was making the mistake of looking at the "_remoteAddress"
variable using my debugger instead of actually invoking the method
g
Which version of CXF are your testing with?
I'm using CXF 2.3.1 within Camel 2.6-SNAPSHOT, I can get the
remoteAddress without any trouble.
Here is the unit test[1] that you may have a look.
[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/comp
Got it!
Thanks Willem.
Here is what I was doing wrong: In the handleMessage method of my
interceptor, I was inspecting the message object using the debugger. It DID
contain the HTTP.REQUEST header as I mentioned earlier, but the
_remoteAddress variable in the Request object was null. The IP addr
FYI, I committed a patch into Camel trunk, you can use the below codes
With the latest Camel 2.6-SNAPSHOT.
Willem
Original Message
Subject: Re: Extracting request IP in Camel CXF
Date: Fri, 24 Dec 2010 12:47:41 +0800
From: Willem Jiang
To: users@camel.apache.org
It's r
Hi,
There is no id for the cxf:bus element. Any Spring cxf:bus automatically
overrides the default bus.
However you can also do the following
It's really a long answer for current solution of camel-cxf.
I think we can add a entry of in the camel message header to let people
access the CXFMessage contents from Camel message header.
That could be more easy to get the request remote IP by these same two lines
org.apache.cxf.Message cxfM
That was sort of helpful Ashwin, thanks. Your long answer did get me to
explore the world of interceptors, but I am sorry to report that I still
don't see the remote IP address.
Here's what I did:
1) Create interceptors. I tried PRE_STREAM, but that didn't work so I just
created two more, one ea
Hi,
If the IP address is in a SOAP Header, can you please try the following
1. Add a HeaderFilterStrategy bean in camel-context.xml as shown below
2. Add this id to your camel-cxf endpoint as shown below
I'm using camel-core-2.5.0 and camel-cxf-2.5.0 which AFAIK is the latest
version.
I was reading through another
http://stackoverflow.com/questions/3480334/camel-cxfrs-with-custom-http-headers
post on Stack Overflow where someone had trouble getting to custom headers.
As per the post, that was a
Which version of Camel are you using ?
On 12/22/10 8:11 AM, goels...@yahoo.com wrote:
Thanks for the response Ashwin, but I am unable to find the "HTTP.REQUEST"
header in the exchange object.
My process() method is as follows:
public void process (Exchange exchange)
{
Map headers = exch
Hi,
Can you please provide details of the version of camel-cxf you are using and
some details about the environment (aka Tomcat, standalone, app-server etc).
I verified that the code does exist for the headers to be propagated in the
camel-cxf trunk just as I mentioned it.
Cheers,
Ashwin...
Thanks for the response Ashwin, but I am unable to find the "HTTP.REQUEST"
header in the exchange object.
My process() method is as follows:
public void process (Exchange exchange)
{
Map headers = exchange.getIn().getHeaders();
// loop through the headers object above and print out all
Hi,
Just ran across this one and am not sure if you figured out how to do this.
The Protocol headers in CXF are propagated to Camel exchanges as Camel
Header entries.
The value of AbstractHTTPDestination.HTTP_REQUEST is set to "HTTP.REQUEST"
in the payload and should be found as the same in th
13 matches
Mail list logo