servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jans...@apache.org
Subject svn commit: r1407456 - /servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/activemq-broker.xml
Date Fri, 09 Nov 2012 13:57:46 GMT
Author: janstey
Date: Fri Nov  9 13:57:45 2012
New Revision: 1407456

URL: http://svn.apache.org/viewvc?rev=1407456&view=rev
Log:
SMX4-1277 - ResourceManager that is registered with activemq-broker.xml doesn't recover from
TX after crash

Modified:
    servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/activemq-broker.xml

Modified: servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/activemq-broker.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/activemq-broker.xml?rev=1407456&r1=1407455&r2=1407456&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/activemq-broker.xml
(original)
+++ servicemix/smx4/features/trunk/assemblies/shared/src/main/resources/etc/activemq-broker.xml
Fri Nov  9 13:57:45 2012
@@ -17,7 +17,8 @@
 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
            xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
-           xmlns:amq="http://activemq.apache.org/schema/core">
+           xmlns:amq="http://activemq.apache.org/schema/core"
+           xmlns:blueprint="http://www.osgi.org/xmlns/blueprint/v1.0.0">
 
     <manifest>
       Export-Service = javax.jms.ConnectionFactory
@@ -26,8 +27,7 @@
     <!-- Allows us to use system properties as variables in this configuration file -->
     <ext:property-placeholder />
 
-    <broker xmlns="http://activemq.apache.org/schema/core" brokerName="default" dataDirectory="${karaf.data}/activemq/default"
useShutdownHook="false">
-
+    <broker xmlns="http://activemq.apache.org/schema/core" blueprint:id="broker" brokerName="default"
dataDirectory="${karaf.data}/activemq/default" useShutdownHook="false">
        <!--
             For better performances use VM cursor and small memory limit.
             For more information, see:
@@ -107,7 +107,7 @@
 
     </broker>
 
-    <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
+    <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"
depends-on="broker">
 
         <property name="brokerURL" value="vm://default?create=false&amp;waitForStart=10000"
/>
     </bean>
@@ -118,12 +118,12 @@
     </bean>
 
     <bean id="resourceManager" class="org.apache.activemq.pool.ActiveMQResourceManager"
init-method="recoverResource">
-          <property name="transactionManager" ref="transactionManager" />
-          <property name="connectionFactory" ref="activemqConnectionFactory" />
-          <property name="resourceName" value="activemq.default" />
+        <property name="transactionManager" ref="recoverableTxManager" />
+        <property name="connectionFactory" ref="activemqConnectionFactory" />
+        <property name="resourceName" value="activemq.${name}" />
     </bean>
 
-    <reference id="transactionManager" interface="javax.transaction.TransactionManager"
/>
+    <reference id="recoverableTxManager" interface="org.apache.geronimo.transaction.manager.RecoverableTransactionManager"
availability="mandatory" />
 
     <service ref="pooledConnectionFactory" interface="javax.jms.ConnectionFactory">
         <service-properties>



Mime
View raw message