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

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

[13:22]  <jstrachan> cibsen: with all this consumer v route v UOW; we maybe 
need a review of all that code really - as when we allow for routes to be 
started/stopped as independent things it might change things a bit
[13:23]  <cibsen> yeah
[13:24]  <cibsen> there is a gremlin lying there waiting when starting/stopping 
routes is more dynamic
[13:24]  <cibsen> I will park my work and attach a patch to the ticket
[13:26]  <jstrachan> yeah
[13:26]  <jstrachan> might have a big impact when we try add that
[13:26]  <jstrachan> it'd be great if we can keep all the big impacts inside 
the core common impl of camel rather than having component/endpoint developers 
having to worry about it
[13:29]  <cibsen> +1
[13:29]  <cibsen> yeah I wanted the UoW stuff for components as well so they 
can register custom code for clean up
[13:29]  <jstrachan> yeah!
[13:29]  <jstrachan> however that works - we need a nice simple API the 
component developers can use
[13:30]  <jstrachan> then we can tinker under the covers to figure out how it 
works
[13:30]  <jstrachan> (whether using real spring transactions, or UOW or 
whatever)
[13:30]  <jstrachan> maybe we should just use spring transactions for example?
[13:30]  <cibsen> I also thoght that we needed a nice DSL in the route: 
from(x).onComplete(process).to(zzz)
[13:30]  <jstrachan> and just kinda make transactions look like a transaction 
manager?
[13:30]  <jstrachan> though then there's the transaction context propogating 
threads issue etc
[13:30]  <jstrachan> yeah
[13:31]  <jstrachan> we might also want to be able to start/stop routes by ID 
too
[13:31]  <cibsen> yeah i think we should stick with Spring TX
[13:31]  <jstrachan> yeah
[13:31]  <cibsen> its to comple to roll out your own
[13:31]  <jstrachan> lets do it :)
[13:31]  <jstrachan> yeah
[13:31]  <jstrachan> then we'd just need a file transaction manager
[13:31]  <jstrachan> or some kinda 'simple local transaction manager' for 
non-tx resources

> 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
>
>         Attachments: CAMEL-123_work_in_progress.patch
>
>
> 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.

Reply via email to