How can I get the remote connection IP address from the camel-cxf consumer ?
Skip to end of metadata
Go to start of metadata

How can I get the remote connection IP address from the camel-cxf consumer ?

From Camel 2.6.0, you can access the CXF Message by using the key of CamelCxfMessage from message header, and you can get the ServletRequest instance from the CXF message, then you can get the remote connection IP easily.

Here is the code snippet:

Labels
  • No labels