From 770539d530acc7fcf38b946318e49c76cab0114b Mon Sep 17 00:00:00 2001 From: Kevin Earls Date: Fri, 24 Jan 2014 12:10:11 +0100 Subject: [PATCH] Added some logging to try to help debug occasional CI failures --- .../activemq/ra/JmsXARollback2CxTransactionTest.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/activemq-ra/src/test/java/org/apache/activemq/ra/JmsXARollback2CxTransactionTest.java b/activemq-ra/src/test/java/org/apache/activemq/ra/JmsXARollback2CxTransactionTest.java index fc88be29b9..bc1d096a4a 100644 --- a/activemq-ra/src/test/java/org/apache/activemq/ra/JmsXARollback2CxTransactionTest.java +++ b/activemq-ra/src/test/java/org/apache/activemq/ra/JmsXARollback2CxTransactionTest.java @@ -34,11 +34,14 @@ import javax.resource.ResourceException; import org.apache.activemq.*; import org.apache.activemq.ActiveMQConnectionFactory; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * @version $Rev$ $Date$ */ public class JmsXARollback2CxTransactionTest extends JmsQueueTransactionTest { + protected static final Logger LOG = LoggerFactory.getLogger(JmsXARollback2CxTransactionTest.class); private static final String DEFAULT_HOST = "vm://localhost?create=false"; private ConnectionManagerAdapter connectionManager = new ConnectionManagerAdapter(); @@ -47,6 +50,12 @@ public class JmsXARollback2CxTransactionTest extends JmsQueueTransactionTest { private XAResource[] xares = new XAResource[2]; private int index = 0; + @Override + protected void setUp() throws Exception { + LOG.info("Starting ----------------------------> {}", this.getName()); + super.setUp(); + } + @Override protected void setSessionTransacted() { resourceProvider.setTransacted(false);