Permalink
Browse files

Add a few more comments and switch to JBoss Fuse 6.0.0.redhat-019 build

1 parent c3e4a3c commit 1140b8c8eee915fad0b57f94b7c97364f6cfd56b @gertv gertv committed Mar 19, 2013
Showing with 20 additions and 7 deletions.
  1. +7 −3 pom.xml
  2. +13 −4 routing/src/main/resources/META-INF/spring/routing.xml
View
@@ -26,8 +26,8 @@
<name>Fuse By Example :: Transactions</name>
<properties>
- <activemq.version>5.7.0.fuse-71-047</activemq.version>
- <camel.version>2.10.0.fuse-71-047</camel.version>
+ <activemq.version>5.8.0.redhat-60019</activemq.version>
+ <camel.version>2.10.0.redhat-60019</camel.version>
<hibernate.version>4.1.8.Final</hibernate.version>
<slf4j.version>1.6.6</slf4j.version>
@@ -89,7 +89,11 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
- <extensions>true</extensions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>2.6</version>
</plugin>
</plugins>
</pluginManagement>
@@ -42,8 +42,11 @@
<osgi:reference id="recoverableTxManager" interface="org.apache.geronimo.transaction.manager.RecoverableTransactionManager" />
<!--
- Setting up the amq:// components with an XA-aware connnection factory and a
- reference to the global transaction manager reference we acquired.
+ Setting up the amq:// components with a configuration that points to the JcaPooledConnectionFactory and the global
+ Spring PlatformTransactiongManager.
+
+ Note that transacted is set to 'false' because it's the JTA TransactionManager that manages the transactions and not
+ the JMS component itself.
-->
<bean id="amq" class="org.apache.camel.component.jms.JmsComponent">
<property name="configuration" ref="AMQConfig" />
@@ -56,14 +59,20 @@
<property name="maxConcurrentConsumers" value="1" />
<property name="cacheLevelName" value="CACHE_NONE" />
</bean>
-
+
+ <!--
+ The JcaPooledConnectionFactory ensures that the JMS Sessions get enlisted in the global transaction manager
+ -->
<bean id="XAPooledCF" class="org.apache.activemq.pool.JcaPooledConnectionFactory" init-method="start" destroy-method="stop">
<property name="name" value="activemq.default" />
<property name="maxConnections" value="1" />
<property name="connectionFactory" ref="AmqXaCF" />
<property name="transactionManager" ref="transactionManager" />
</bean>
-
+
+ <!--
+ Defines an ActiveMQ XA-aware ConnectionFactory
+ -->
<bean id="AmqXaCF" class="org.apache.activemq.ActiveMQXAConnectionFactory">
<property name="brokerURL" value="failover:(tcp://localhost:61616)?jms.prefetchPolicy.all=1" />
<property name="userName" value="admin" />

0 comments on commit 1140b8c

Please sign in to comment.