activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r577869 - /activemq/trunk/activemq-core/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java
Date Thu, 20 Sep 2007 18:49:01 GMT
Author: chirino
Date: Thu Sep 20 11:49:01 2007
New Revision: 577869

URL: http://svn.apache.org/viewvc?rev=577869&view=rev
Log:
Fix broke test.. A transaction manager is now required when transacted endpoints are configured.

Modified:
    activemq/trunk/activemq-core/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java

Modified: activemq/trunk/activemq-core/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java?rev=577869&r1=577868&r2=577869&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java
(original)
+++ activemq/trunk/activemq-core/src/test/java/org/apache/activemq/camel/component/ActiveMQRouteTest.java
Thu Sep 20 11:49:01 2007
@@ -16,6 +16,7 @@
  */
 package org.apache.activemq.camel.component;
 
+import org.springframework.jms.connection.JmsTransactionManager;
 import org.apache.camel.CamelContext;
 import org.apache.camel.ContextTestSupport;
 import org.apache.camel.builder.RouteBuilder;
@@ -69,11 +70,12 @@
                 from("activemq:queue:test.b").to("mock:result");
 
                 JmsEndpoint endpoint1 = (JmsEndpoint) endpoint("activemq:topic:quote.IONA");
+                endpoint1.getConfiguration().setTransactionManager(new JmsTransactionManager());
                 endpoint1.getConfiguration().setTransacted(true);
                 from(endpoint1).to("mock:transactedClient");
 
                 JmsEndpoint endpoint2 = (JmsEndpoint) endpoint("activemq:topic:quote.IONA");
-                endpoint1.getConfiguration().setTransacted(true);
+                endpoint2.getConfiguration().setTransacted(false);
                 from(endpoint2).to("mock:nonTrasnactedClient");
             }
         };



Mime
View raw message