John,

The Netty component does not support the injection of the host and port values 
from a header. An alternative solution would be to use a Recipient List [1] 
where these values are specified on the endpoint as dynamic values [2] from a 
source such as a message header.

From your example, if the endpoint address was specified in a header called 
netty_addr, it can be written as follows: 

recipientList(simple(netty:tcp://${header.netty_addr}?sync=false&connectTimeout=1000))

- Andy

[1] - http://camel.apache.org/recipient-list.html
[2] - http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html


-- 
Andrew Block


On September 9, 2015 at 1:39:30 AM, John Smith ([email protected]) wrote:

I'd like to "ping" a server on port 22 but I only have the server's IP at 

Reply via email to