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

Incorrect behavior: transactional Sessions in EJB methods

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-3.2.6 Final
    • JCA service
    • None

    Description

      SourceForge Submitter: swaldman .
      If a QueueSession is created in a business method of an EJB
      with the transacted argument of createQueueSession() set to
      true, JBoss fails to send the message unless the user
      explicitly calls commit() on the session.

      This is incorrect – users should be forbidden from calling
      commit() or rollback(), as jboss is responsible for
      transaction management.

      According to Sun (see e.g. JMS tutorial, http://java.sun.com/
      products/jms/tutorial/1_3_1-fcs/doc/jmsj2ee.html#1029338)
      the transacted argument should be ignored in an EJB
      context. My beans usually set it to true, only to document
      that message send is intended to be included in the method's
      transaction. These JMS beans break in jboss.

      Attachments

        Activity

          People

            adrian.brock Adrian Brock (Inactive)
            sourceforge-user SourceForge legacy user (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: