mirror of https://github.com/apache/activemq.git
resolve unit test failures from changes via: https://issues.apache.org/activemq/browse/AMQ-2034 - only use sync for close if in xa tx, this may need some rework for managed tck case
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@734393 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d89abe0322
commit
3a56070500
|
@ -554,7 +554,7 @@ public class ActiveMQSession implements Session, QueueSession, TopicSession, Sta
|
|||
*/
|
||||
public void close() throws JMSException {
|
||||
if (!closed) {
|
||||
if (getTransacted()) {
|
||||
if (getTransactionContext().isInXATransaction()) {
|
||||
if (!synchronizationRegistered) {
|
||||
synchronizationRegistered = true;
|
||||
getTransactionContext().addSynchronization(new Synchronization() {
|
||||
|
|
|
@ -23,7 +23,7 @@ import org.apache.activemq.broker.BrokerService;
|
|||
import org.apache.activemq.test.JmsResourceProvider;
|
||||
|
||||
/**
|
||||
* Test failover for Queues
|
||||
* Test failover for Topics
|
||||
*/
|
||||
public class TransactedTopicMasterSlaveTest extends JmsTopicTransactionTest {
|
||||
protected BrokerService slave;
|
||||
|
|
Loading…
Reference in New Issue