Hi

No you can't propagate spring TX accross different threads.


On Fri, Nov 30, 2012 at 12:01 PM, tolk <[email protected]> wrote:
> I have a situation similar to the simplified example below. Basically, I'm
> trying to use camel on an internal service to send an async message to
> itself via the SEDA component - a little odd perhaps but I don't have any
> choice in this:
>
> public class MyServiceImpl
> {
>         ProducerTemplate producerTemplate;
>
>         ...
>
>         @Transactional(propagation = Propagation.REQUIRED)
>         public void startingMethod(...)
>         {
>                 ...
>                 producerTemplate.sendMessage("seda:start"...);
>         }
>
>         public void endingMethod(...)
>         {
>                 ...
>         }
> }
>
> public class MyRouteBuilder extends RouteBuilder
> {
>         public void configure()
>         {
>                 
> from("seda:start").to("bean:myServiceImplBean?method=endingMethod");
>         }
> }
>
> My questions are; what will happen to the spring transaction delimitated by
> the annotation, will it be lost? If so is there a way to propagate this
> transaction using camel?
>
> Thanks!
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Spring-Transaction-Propagating-tp5723442.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to