Testing of routes using Camel 1.6

2013-01-06 Thread dhruv.sachdeva
Hi I need to write unit test cases for some camel routes using (Version 1.6) Can anyone please suggest if it is possible to mock components(processor and idempotentConsumer) inside the route? If yes, please suggest the approach. Below is the route snippet from("direct:someuri").proces

Re: Testing of routes using Camel 1.6

2013-01-07 Thread dhruv.sachdeva
Thanks for Updation.Yes Camel 2.x and above version support this route component testing,but i need to test using Camel 1.6 ,so please if you can suggest some examples or is it infeasible to test using Camel 1.6. -- View this message in context: http://camel.465427.n5.nabble.com/Testing-of-rou

Handling Message failure on Container

2013-05-10 Thread dhruv.sachdeva
I am applying Idempotent logic for filtering duplicate message.If message is persisted to table like store_message_processed which contain unique messages and container fails while sending message due to some validation.I want to know if i send that message again but my table will contain unique ha

JPA transaction roll back

2013-05-23 Thread dhruv.sachdeva
Hi .I am implementing idempotent consumer pattern for filtering duplicate message. When i am creating a new record in database and when i run the service mix container i get error on container something like this:-- Failed to commit.Jpa transaction rollback. My logic:- LOGGER.info("@proce