The comment in the link below - if true - indicates that the jms component 
(which the activemq component is based on) is "not designed for batched 
transactions" and doesn't support consuming multiple messages in a single 
transaction; I don't know whether that also means it won't post a batch of 
messages in a single Tx, or not.

http://camel.465427.n5.nabble.com/Consuming-multiple-JMS-messages-in-one-single-transaction-td5640489.html

It's not even clear to me, if you didn't have the split (so 1 msg in=1 msg 
out), whether the send takes place in the same transaction as the consume or 
not. 

Camel experts - can a local transaction span multiple operations, if those 
operations -- in this case, a consume and a produce -- are against the same 
resource (jms broker)? It's unclear to me, especially when there's a split(), 
how many transactions there are and when they get committed.

Barış

> On 4 Oct 2013, at 18:08, abdiels <abdi...@gmail.com> wrote:
> 
> First let me thank you for replying...Here is what I have in my XML
> 
> 
>    <bean id="activemq"
> class="org.apache.activemq.camel.component.ActiveMQComponent">
> 
>        <property name="transacted" value="true"/>
> 
>        <property name="transactionManager" ref="txManager"/>
>    </bean>
> 
> 
>    <bean id="txManager"
> class="org.springframework.jms.connection.JmsTransactionManager">
> 
>        <property name="connectionFactory" ref="jmsConnectionFactory"/>
>    </bean>
> 
> 
>    <bean id="jmsConnectionFactory"
> class="org.apache.activemq.ActiveMQConnectionFactory">
>        <property name="brokerURL" value="tcp://localhost:61616"/>
>    </bean>
> 
> let me know if you need any additional information.
> 
> 
> 
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Issue-with-Transactions-and-Split-tp5738618p5740889.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to