Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-210

ER1: JMS TCKs violations: XASession should throw javax.jms.IllegalStateException when commit() is called on closed session

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • JBoss A-MQ 6.0
    • 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

      { tool.getDefaultQueueSession().commit(); }

      catch (javax.jms.IllegalStateException ise)

      { logMsg("Caught expected exception"); return; }

      throw new Fault(testName);
      } catch (Exception e)

      { TestUtil.logErr(testName + " failed: ", e); throw new Fault(testName); }

      }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

      Attachments

        Activity

          People

            gtully@redhat.com Gary Tully
            jsedlacek Jiri Sedlacek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: