just set the route to use a single consumer thread...like this from("activemq:queue:inbound?concurrentConsumers=1&maxConcurrentConsumers=1").process(...);
Alberto-2 wrote: > > Hi, > > I have a route that consumes messages from a queue. This route is > transacted because write to a database calling a bean. I have to be sure > that the messages are not consumed in parallel way but one by one on > completion of the route. > > I tried using a RoutePolicy, stopping the consumer in onExchangeBegin() > and starting it in onExchangeDone(), but it doesn't work. > > How can I achieve it? > > Best regards > > Alberto > ----- Ben O'Day IT Consultant -http://consulting-notes.com -- View this message in context: http://camel.465427.n5.nabble.com/How-obtain-a-serial-behaviour-from-a-route-tp4780227p4780328.html Sent from the Camel - Users mailing list archive at Nabble.com.