GitHub user yuruki opened a pull request:
https://github.com/apache/camel/pull/303
CAMEL-1077 Added remote address support to camel-netty consumer
This pull request adds *clientMode* parameter to netty component. When
*clientMode* is true netty consumer will listen to the given address as a
client.
Bear in mind that my experience with netty is about two days and the
approach used here might be completely wrong. My local unit tests seem to work
but there are no tests for clientMode in this pull request yet.
If the implementation proves solid we might want to switch the clientMode
on automatically for non-local addresses
(http://stackoverflow.com/questions/2406341/how-to-check-if-an-ip-address-is-the-local-host-on-a-multi-homed-system).
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/yuruki/camel netty-client-consumer
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/303.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #303
----
commit 0e07c5d337b4c73d34022be244fa526c8b84974d
Author: Jyrki Ruuskanen <[email protected]>
Date: 2014-10-17T14:45:18Z
Added remote address support to camel-netty consumer
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---