I'm new to Camel and I would like some input on the following code I am
trying to write.

Messages arrives on a Queue, and from that queue i would like to open the
message, determine if the message id already exists in a database table, and
if it does then discard the message.  If it does not, then add the message
to the database table.

Would I use a Processor to do the check against the table?
Can I use the JDBC component to do the check, I'm assuming I can use it to
do the insert
How would I stop the route if the record already exist, ie, not continue to
the "insert" endpoint?

would it look something like this
from('jms:queue:myqueue').to(????).to('database insert endpoint?')


Thanks in advance!
Steve

-- 
View this message in context: 
http://www.nabble.com/Simple-Routing-Example-tp23520058p23520058.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to