cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1567938 - /cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/TestReceiver.java
Date Thu, 13 Feb 2014 14:23:34 GMT
Author: cschneider
Date: Thu Feb 13 14:23:34 2014
New Revision: 1567938

URL: http://svn.apache.org/r1567938
Log:
Start connection in TestReceiver

Modified:
    cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/TestReceiver.java

Modified: cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/TestReceiver.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/TestReceiver.java?rev=1567938&r1=1567937&r2=1567938&view=diff
==============================================================================
--- cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/TestReceiver.java
(original)
+++ cxf/trunk/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/util/TestReceiver.java
Thu Feb 13 14:23:34 2014
@@ -59,6 +59,7 @@ public class TestReceiver {
         ResourceCloser closer = new ResourceCloser();
         try {
             Connection connection = closer.register(connectionFactory.createConnection());
+            connection.start();
             Session session = closer.register(connection.createSession(false, Session.AUTO_ACKNOWLEDGE));
             MessageConsumer consumer = closer.register(session.createConsumer(session.createQueue(receiveQueueName)));
             javax.jms.Message message = null;
@@ -76,6 +77,7 @@ public class TestReceiver {
         ResourceCloser closer = new ResourceCloser();
         try {
             Connection connection = closer.register(connectionFactory.createConnection());
+            connection.start();
             Session session = closer.register(connection.createSession(false, Session.AUTO_ACKNOWLEDGE));
             MessageConsumer consumer = closer.register(session.createConsumer(session
                 .createQueue(receiveQueueName)));



Mime
View raw message