125126127128129130131132133134135
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); }
895896897898899900901902903904905
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotSentSoNoRollback() throws Exception
967968969970971972973974975976977
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesWithConsumerStartedBeforeFailover() throws Exception
10471048104910501051105210531054105510561057
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesConsumedSoRollback() throws Exception
11211122112311241125112611271128112911301131
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testTransactedMessagesNotConsumedSoNoRollback() throws Exception
12071208120912101211121212131214121512161217
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesSentSoRollbackOnEnd() throws Exception
12681269127012711272127312741275127612771278
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesSentSoRollbackOnPrepare() throws Exception
13311332133313341335133613371338133913401341
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // This might happen if 1PC optimisation kicks in
13951396139713981399140014011402140314041405
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesNotSentSoNoRollbackOnCommit() throws Exception
14751476147714781479148014811482148314841485
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesConsumedSoRollbackOnEnd() throws Exception