diff --git a/activemq-ra/src/test/java/org/apache/activemq/ra/MDBTest.java b/activemq-ra/src/test/java/org/apache/activemq/ra/MDBTest.java index 93b631cf39..7a44345ade 100644 --- a/activemq-ra/src/test/java/org/apache/activemq/ra/MDBTest.java +++ b/activemq-ra/src/test/java/org/apache/activemq/ra/MDBTest.java @@ -186,7 +186,7 @@ public class MDBTest { MessageConsumer advisory = session.createConsumer(AdvisorySupport.getConsumerAdvisoryTopic(new ActiveMQQueue("TEST"))); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false&create=false"); adapter.setQueuePrefetch(1); adapter.start(new StubBootstrapContext()); @@ -255,7 +255,7 @@ public class MDBTest { MessageConsumer advisory = session.createConsumer(AdvisorySupport.getConsumerAdvisoryTopic(new ActiveMQQueue("TEST"))); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false&create=false"); adapter.setQueuePrefetch(1); adapter.start(new StubBootstrapContext()); @@ -320,7 +320,7 @@ public class MDBTest { connection.start(); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false&create=false"); adapter.start(new StubBootstrapContext()); final CountDownLatch messageDelivered = new CountDownLatch(10); @@ -618,7 +618,7 @@ public class MDBTest { Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false?create=false"); adapter.start(new StubBootstrapContext()); final CountDownLatch messageDelivered = new CountDownLatch(5); @@ -720,7 +720,7 @@ public class MDBTest { Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false&create=false"); adapter.start(new StubBootstrapContext()); final String ORDER_PROP = "Order"; final List orderedReceipt = new ArrayList(); @@ -823,7 +823,7 @@ public class MDBTest { Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false&create=false"); adapter.start(new StubBootstrapContext()); final CountDownLatch messageDelivered = new CountDownLatch(2); @@ -915,7 +915,7 @@ public class MDBTest { Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); ActiveMQResourceAdapter adapter = new ActiveMQResourceAdapter(); - adapter.setServerUrl("vm://localhost?broker.persistent=false"); + adapter.setServerUrl("vm://localhost?broker.persistent=false&create=false"); adapter.start(new StubBootstrapContext()); final CountDownLatch messageDelivered = new CountDownLatch(1);