Two questions -

- What are the other transaction endpoints you’ll be using?
- Will messages from both broker1 and broker2 be involved in the same 
transaction?


> On Feb 12, 2016, at 1:19 AM, Stanisław Kuś <[email protected]> wrote:
> 
> Hi,
> 
> thanks for answering. I have two separate servers running ActiveMQ ( my
> datasources ) and a single Camel App that should consume from those 2
> instances in a transactional way.
> 
> What I can do is from( broker1:queue:source,
> broker2:queue:source).process(....  . The problem is what transaction
> manager should I use  ? Trying with JTATransactionManager for all of them
> or use separated JMSTransactionManager for each server ?
> 
> Thanks for anwers,
> 
> Best,
> 
> Stan
> 
> On Thu, Feb 11, 2016 at 5:54 PM, Quinn Stevenson <
> [email protected]> wrote:
> 
>> 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
>> 
>> 

Reply via email to