Hi

See NettyConstants there is some keys for host information etc.
I would assume you can get these details as message headers with these keys.
You can check the source to be sure.
https://svn.apache.org/repos/asf/camel/trunk/components/camel-netty/

And see this FAQ for a dynamic "to"
http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html


On Fri, Mar 9, 2012 at 6:26 PM, kmachstang <kmachst...@hotmail.com> wrote:
> Hello,
>
> I am sure this question has been answered somewhere, but I can't seem to get
> my search criteria to return the answer.
>
> I have a camel-netty route setup using spring xml. The route receives a udp
> datagram, decodes it and prints the payload, then encodes the message and
> sends it out again on a different port. The route looks like this:
>
> <route>
> <from
> uri="netty:udp://0.0.0.0:1972?allowDefaultCodec=false&sync="false"/>
> ... beans to decode message, print some values, and encode the message ...
> <to
> uri="netty:udp://127.0.0.1:1973?allowDefaultCodec=false&sync="false"/>
> </route>
>
> This works perfectly if the client is on localhost, but I would like to
> modify it to work for any client attempting to send the udp datagrams. How
> would I dynamically detect the host information and respond?
>
> Thanks!
> kmach
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-netty-Dynamic-route-endpoint-tp5551262p5551262.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to