[ https://issues.apache.org/activemq/browse/CAMEL-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=49236#action_49236 ]
Claus Ibsen commented on CAMEL-123: ----------------------------------- We got a catch-22 situation UnitOfWorkProcessor set up the add/remove synchronzation callbacks but they are lazy created just before the Exchange is processed. So in another component/consumer component/producer you can not add the synchronization before its processed. But you need to use the async processor and do it in the callback done method. Need to look into this some more. The idea is also to expose some nice methods in the DSL so end users can add their own custom processing, such as being able to send an email, log or whatever an exchange is done/failed. > add an 'on commit / on rollback' hook so that non-transactional components > can do things like delete files when the processing has completed > -------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-123 > URL: https://issues.apache.org/activemq/browse/CAMEL-123 > Project: Apache Camel > Issue Type: Improvement > Reporter: James Strachan > Assignee: Claus Ibsen > Fix For: 2.0.0 > > > e.g. file / FTP should only delete the file after successful processing has > occurred etc -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.