You can call stop() to terminate a route. If you wrap this in a condition that check if the body is null or you can avoid routing messages to your 'foo' queue. This pattern is called 'message filter' and an example is available at http://camel.apache.org/message-filter.html (scroll down to "using stop").
----- Richard Kettelerij, http://github.com/rkettelerij -- View this message in context: http://camel.465427.n5.nabble.com/JDBC-Route-with-no-result-tp3212669p3212902.html Sent from the Camel - Users mailing list archive at Nabble.com.
