Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1923

createSession(boolean, int) arguments are not handled correctly

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-4.0.3RC2
    • JBossAS-4.0.2 Final
    • JMS (JBossMQ)
    • None
    • Documentation (Ref Guide, User Guide, etc.), Compatibility/Configuration

      According to the EJB 2.1 spec, the arguments given at the createSession(boolean, int) method should be ignored by the Application Server. However, I can only send messages when I submit (false, Session.AUTO_ACKNOWLEDGE).

      The following section is copied from the EJB 2.1 specification (page 374):

      Because the container manages the transactional enlistment of
      JMS sessions on behalf of a bean, the parameters of the
      createSession(boolean transacted, int acknowledgeMode),
      createQueueSession(boolean transacted, int acknowledgeMode)
      and createTopicSession(boolean transacted, int acknowledgeMode)
      methods are ignored. It is recommended that the Bean Provider
      specify that a session is transacted, but provide 0 for the
      value of the acknowledgment mode.

              adrian.brock Adrian Brock (Inactive)
              autiaa_jira Leon van Zantvoort (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: