camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lancemethot <>
Subject Help with sequential, synchronous routes
Date Wed, 25 Mar 2015 16:48:21 GMT

I am new to Camel, so forgive me if my terminology is not correct.

I have a process that must perform the following work:

- process 'new users'
- process 'new customers'
- process relationships between users and customers

Processing relationships will fail unless the users and customers have
already been processed.

I have implemented the above using three separate Camel routes and the
mybatis interface. An example route is:

   .setHeader("TransmissionIdentifier", simple("${body?.getmUUID}"))

The customer and relationship routes are similar.

I am only able to make use of mybatis consumer.useIterator and
consumer.onConsume attributes if mybatis is invoked in the "from" method.
These didn't seem to work when called from to()... which makes sense to me.
I really like consumer.useIterator and consumer.onConsume, as it
considerably simplifies the code.

But how can I chain these three separate routes so that they process
sequentially and synchronously? They are each firing on independent delays
and there is no guarantee that the user and customer information is
processed before relationships.

I looked into direct() but didn't have much luck. Is there another way to
define route dependencies or to chain producers?


View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message