Details
-
Bug
-
Resolution: Done
-
Blocker
-
JBoss A-MQ 6.0
-
None
-
None
Description
JMS TCKs expect throwing of javax.jms.IllegalStateException when commit() is called on closed session, test code looks like lines below:/*@testName: closedQueueSessionCommitTest
*@assertion_ids: JMS:SPEC:113; JMS:JAVADOC:229;
*@test_Strategy: Close default session and call method onit. Check for proper JMSException.
*/public void closedQueueSessionCommitTest() throws Fault {
String testName = "closedQueueSessionCommitTest";try {
createAndCloseSession(JmsTool.TX_QUEUE, user, password);
logMsg("Try to call commit with closed session.");
try
catch (javax.jms.IllegalStateException ise)
{ logMsg("Caught expected exception"); return; } throw new Fault(testName);
} catch (Exception e)
}line with tool.getDefaultQueueSession() returns ActiveMQXASession on which commit() is called.Expected behaviour is described in section 4.4.2 of JMS 1.1 spec