You can always have two “from” clauses and route the exchange to a direct route for the common processing.
from( “activemq1://queue1”).to( “direct://process ); from( “activemq2://queue2”).to( “direct://process ); from( “direct://process” )……. Can you give a little more detail on what you’re trying to accomplish with the transaction? > On Feb 11, 2016, at 4:17 AM, Stanisław Kuś <[email protected]> wrote: > > Hi folks, > > I have a short question : > > Is it possible to consume from 2 different brokers within a single Route > with transactions. > > something like form("activemq1:queue1", "activemq2:queue" ).... > > Do I need to specify a separate transaction manager pro > ActiveMQConnectionFactory instance or is there a way to have one > (Transaction M.) for both ? > > Thanks for answers in advance ! > > Best, > > Stan
