Hi I dont think so as Camel is the Camel Exchange is the complete message to be routed. Its the job of the component/consumer to assemble that complete message before its passed on as an Exchange to the Camel routing engine.
It sounds more like you want lower level networking and process UDP packages individually, which is more a low level job to do with possible just pure Netty api. However maybe you can build a custom codec in netty that just "completes" the udp package as-is, and you can get similar functionality with Camel. On Wed, Jul 15, 2015 at 8:56 PM, SteveR <srichard...@vonage.com> wrote: > I have a Linux Java7 stand-alone application using Camel 2.14 and the > *camel-netty* component. I have several routes that each receive a UDP feed > via netty:udp. > > I've already implemented a few routes that do this, but have used either a > *DelimiterBasedFrameDecoder* or a *LengthFieldBasedFrameDecoder*, depending > on whether the packets/messages in the UDP feed have a delimiter and/or a > way for me to know the total length of the payload. > > Now I have another UDP feed that I need to create a route for, but this one > has payload messages each containing a fixed 16-byte header and the rest of > the message is encrypted. Therefore, I have no message delimiter or message > length field to exploit. > > Here lies my confusion: shouldn't camel-netty be able to just produce a > separate Exchange for each received UDP packet, regardless of its size or > contents? Camel-netty interfaces to the UDP protocol and knows the size of > each received packet. I'm starting to feel like maybe I've over-complicated > things by using a *DelimiterBasedFrameDecoder * and/or > *LengthFieldBasedFrameDecoder* in my ServerPipeline. > > Any help is greatly appreciated! > > Thanks, Steve > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-2-14-Netty-Separate-Exchange-for-each-UDP-packet-tp5769372.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2nd edition: http://www.manning.com/ibsen2