We are using the content enricher EIP pattern [1] in conjunction with the
enrich DSL element/method.
[1] http://camel.apache.org/content-enricher.html
Christian
Hi,
Take a look at the multicast pattern:
http://camel.apache.org/multicast.html.
Regards,
Richard
--
View this message in context:
http://camel.465427.n5.nabble.com/Router-logic-tp3401971p3402100.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi,
I have the following workflow which I assume is a pretty common use case:
1. Take a message from a JMS topic.
2. Save some of its attributes to the database.
3. Send the message to a different JMS topic
Step 1 and 2 are performed in an XA transaction.
After step 1, I have the JMS message i
tranform message to new entity for persisting.
>
> 3. Verify if Entity value exist in Look up table
> 3a. If values doesn't exist, populate in xyz look up tables
>
> 4. write new Entity to new table
>
> So, to achieve above scenario, i have written sample router logic
tables
4. write new Entity to new table
So, to achieve above scenario, i have written sample router logic using
camel JAVA DSL but i am unsure how step 3 and 3a will be written in my
configure method. Please see my code as shown below. Please correct me if I
am wrong.
public void
. tranform message to new entity for persisting.
3. Verify if Entity value exist in Look up table
3a. If values doesn't exist, populate in xyz look up tables
4. write new Entity to new table
So, to achieve above scenario, i have written sample router logic using
camel JAVA DSL