Hi,

Does Camel provide any synchronization feature in a route? I have a simple
route defined inside a router class where I read a input csv file, process
it and store/insert the information if the mandatory field does not exist in
the database while do an update if the mandatory field exists in the
database. 

The problem is sometimes there are more than one inserts when the mandatory
field is not present in the database obviously since there might be more
than one thread thats doing a select of the mandatory field in db, not
finding it and so doing an insert.  What is missing is synchronization of a
part of the route where the select and insert/update are happening.

The problem might get solved by using threads(1) inside the route; but I was
wondering if there is some sort of synchronize() method that I can call
inside the route? If there is one any, can you please give an example?

Thanks




   
-- 
View this message in context: 
http://old.nabble.com/Synchronization-in-camel-route-tp28433290p28433290.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to