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.

Reply via email to