Or use a filter eip http://camel.apache.org/message-filter.html
You can also general use an intercept from and then detour / stop it if its null http://camel.apache.org/intercept.html On Tue, Dec 6, 2016 at 4:22 PM, Steve Huston <shus...@riverace.com> wrote: > You can set the ROUTE_STOP property to true. > http://camel.apache.org/intercept.html has more info. >> -----Original Message----- >> From: sa_james [mailto:sa_remin...@hotmail.com] >> Sent: Tuesday, December 06, 2016 10:01 AM >> To: users@camel.apache.org >> Subject: What to do with Null Body messages? >> >> I have a processing Pipeline where I sometimes receive null-Body Messages. >> When I Forward the Messages to the next steps, there is an error. How do I >> get rid of the null-Body exchanges? I mean, they have to go somewhere. >> Thx. >> >> >> >> -- >> View this message in context: http://camel.465427.n5.nabble.com/What-to- >> do-with-Null-Body-messages-tp5791139.html >> Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2