464465466467468469470471472473474
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } /**
539540541542543544545546547548549
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotSentSoNoRollback() throws Exception
611612613614615616617618619620621
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesWithConsumerStartedBeforeFailover() throws Exception
691692693694695696697698699700701
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesConsumedSoRollback() throws Exception
765766767768769770771772773774775
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotConsumedSoNoRollback() throws Exception
851852853854855856857858859860861
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesSentSoRollbackOnEnd() throws Exception
912913914915916917918919920921922
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesSentSoRollbackOnPrepare() throws Exception
975976977978979980981982983984985
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // This might happen if 1PC optimisation kicks in
10391040104110421043104410451046104710481049
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesNotSentSoNoRollbackOnCommit() throws Exception
11191120112111221123112411251126112711281129
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesConsumedSoRollbackOnEnd() throws Exception