Add TM Locator impl to JMSBridge tests
This commit is contained in:
parent
64cc435ea7
commit
39c61014ac
|
@ -402,7 +402,10 @@ public final class JMSBridgeImpl implements JMSBridge
|
||||||
|
|
||||||
checkParams();
|
checkParams();
|
||||||
|
|
||||||
TransactionManager tm = ServiceUtils.getTransactionManager();
|
if (tm == null)
|
||||||
|
{
|
||||||
|
tm = ServiceUtils.getTransactionManager();
|
||||||
|
}
|
||||||
|
|
||||||
// There may already be a JTA transaction associated to the thread
|
// There may already be a JTA transaction associated to the thread
|
||||||
|
|
||||||
|
@ -1015,7 +1018,10 @@ public final class JMSBridgeImpl implements JMSBridge
|
||||||
ActiveMQJMSBridgeLogger.LOGGER.trace("Starting JTA transaction");
|
ActiveMQJMSBridgeLogger.LOGGER.trace("Starting JTA transaction");
|
||||||
}
|
}
|
||||||
|
|
||||||
TransactionManager tm = ServiceUtils.getTransactionManager();
|
if (tm == null)
|
||||||
|
{
|
||||||
|
tm = ServiceUtils.getTransactionManager();
|
||||||
|
}
|
||||||
|
|
||||||
// Set timeout to a large value since we do not want to time out while waiting for messages
|
// Set timeout to a large value since we do not want to time out while waiting for messages
|
||||||
// to arrive - 10 years should be enough
|
// to arrive - 10 years should be enough
|
||||||
|
|
Loading…
Reference in New Issue