camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: [DISCUSS] - Camel 2.0 - Easier Camel Spring Transaction configuration
Date Tue, 14 Apr 2009 05:48:48 GMT
>
> Next step in improvement would be to handle that the
> PROPAGATION_REQUIRED bean is optional, so Camel can lookup and find
> the PlatformManager and default to required itself. Just like the JMS
> component can do with transacted=true URI option.
Okay I have added this feature now.

Camel will auto lookup the PlatformTransactionManager and if it can
find a single bean in the registry it will use it. If there are 2 or
more it will thrown an exception so you can configure an explicit
policy defining which manager you want to use.

This allows us to minimize the XML wiring, to what the Spring TX
itself requires = NO XML configuration for Camel is needed at all.
Just remember to set the route as transacted using <transacted/> that's it!



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Apache Camel Reference Card:
http://refcardz.dzone.com/refcardz/enterprise-integration

Mime
View raw message