From 2d46399ff3b4edc4af396be393967ff80bdf60d3 Mon Sep 17 00:00:00 2001 From: "Timothy A. Bish" Date: Thu, 7 Mar 2013 17:12:51 +0000 Subject: [PATCH] fix for: https://issues.apache.org/jira/browse/AMQ-4363 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1453964 13f79535-47bb-0310-9956-ffa450edef68 --- .../store/jdbc/JDBCXACommitExceptionTest.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java index 2cc889f442..2713f9fb34 100644 --- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java +++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/jdbc/JDBCXACommitExceptionTest.java @@ -40,11 +40,18 @@ public class JDBCXACommitExceptionTest extends JDBCCommitExceptionTest { 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();