You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/01/20 19:17:59 UTC

[jira] Commented: (CAMEL-123) add an 'on commit / on rollback' hook so that non-transactional components can do things like delete files when the processing has completed

    [ https://issues.apache.org/activemq/browse/CAMEL-123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=48850#action_48850 ] 

Claus Ibsen commented on CAMEL-123:
-----------------------------------

The File components could benefit from this so they will hook into UOW and get a onComplete or onFailure callbacks.

These components handle it themself today using try .. catch logic.

I might as well take on this one and use the file component as use-case. For starters the API can be exposed internally/spi and later we can consider some nice DSL supports so you can attach custom code to be invoked.

> 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
>             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.