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
15511552155315541555155615571558155915601561
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testXAMessagesConsumedSoRollbackOnPrepare() throws Exception
16291630163116321633163416351636163716381639
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } // 1PC optimisation
17101711171217131714171517161717171817191720
session2.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testCreateNewFactoryAfterFailover() throws Exception
17381739174017411742174317441745174617471748
session.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } public void testFailoverMultipleSessionsWithConsumers() throws Exception
18321833183418351836183718381839184018411842
sendSession.close(); sf.close(); Assert.assertEquals(0, sf.numSessions()); Assert.assertEquals(0, sf.numConnections()); } /*