revised JMS CachedConnectionFactory to avoid unnecessary rollback calls on Session return (SPR-8437); fixed JMS CachedConnectionFactory to fully synchronize its Session list (SPR-8436)
@ -475,9 +475,7 @@ public class SingleConnectionFactoryTests extends TestCase {
@@ -475,9 +475,7 @@ public class SingleConnectionFactoryTests extends TestCase {
con.createSession(true,Session.AUTO_ACKNOWLEDGE);
conControl.setReturnValue(txSession,1);
txSession.getTransacted();
txSessionControl.setReturnValue(true,2);
txSession.rollback();
txSessionControl.setVoidCallable(1);
txSessionControl.setReturnValue(true,1);
txSession.commit();
txSessionControl.setVoidCallable(1);
txSession.close();
@ -539,9 +537,9 @@ public class SingleConnectionFactoryTests extends TestCase {
@@ -539,9 +537,9 @@ public class SingleConnectionFactoryTests extends TestCase {
@ -601,9 +599,7 @@ public class SingleConnectionFactoryTests extends TestCase {
@@ -601,9 +599,7 @@ public class SingleConnectionFactoryTests extends TestCase {