Thanks Christian for your reply.Let me try and clarify the use case further :Consider the following routes within a camel context.... ............................................a. I need to update a record in the DB immediately after the last route is executed (in our case route=r4 i.e after the last statements of the r4, are executed, the DB has to be updated.b. The twist here is that this solution has to be generic. Different users might have their own cameml routes. We need to provide a generic solution wherein the database update happens immediately after the last statement of the last route is executed. We would be providing a jar file to the users c. I was wondering if the onCompletion statement could be executed on the fly. i.e the end user could just update a properties file about the last route and the onCompletion could be hooked to that route. d. Or, is there any way of knowing the last statetement of the last route of a given context and automatically update the DB after the last statement is executed.Please do let us know how to go about this.Appreciate all your help.Regards,Bhavani
-- View this message in context: http://camel.465427.n5.nabble.com/Regarding-OnCompletion-functionality-tp5726726p5726869.html Sent from the Camel - Users mailing list archive at Nabble.com.
