activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1453964 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java
Date Thu, 07 Mar 2013 17:12:51 GMT
Author: tabish
Date: Thu Mar  7 17:12:51 2013
New Revision: 1453964

URL: http://svn.apache.org/r1453964
Log:
fix for: https://issues.apache.org/jira/browse/AMQ-4363

Modified:
    activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java

Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java?rev=1453964&r1=1453963&r2=1453964&view=diff
==============================================================================
--- activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java
(original)
+++ activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java
Thu Mar  7 17:12:51 2013
@@ -40,11 +40,18 @@ public class JDBCXACommitExceptionTest e
 
     private long txGenerator = System.currentTimeMillis();
 
-    protected ActiveMQXAConnectionFactory factory = new ActiveMQXAConnectionFactory(
-            "tcp://localhost:61616?jms.prefetchPolicy.all=0&jms.redeliveryPolicy.maximumRedeliveries="+messagesExpected);
+    protected ActiveMQXAConnectionFactory factory;
 
     boolean onePhase = true;
 
+    @Override
+    public void setUp() throws Exception {
+        super.setUp();
+
+        factory = new ActiveMQXAConnectionFactory(
+            connectionUri + "?jms.prefetchPolicy.all=0&jms.redeliveryPolicy.maximumRedeliveries="+messagesExpected);
+    }
+
     public void testTwoPhaseSqlException() throws Exception {
         onePhase = false;
         doTestSqlException();



Mime
View raw message