Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-2650

TomEE connection.createConnect(int) does not ignore value when in a JTA Transcation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 7.0.6, 7.1.1, 8.0.0-M3
    • 8.0.0-Final
    • None
    • None

    Description

      https://docs.oracle.com/javaee/7/api/javax/jms/Connection.html#createSession-int-

      In a Java EE web or EJB container, when there is an active JTA transaction in progress:
      
      The argument sessionMode is ignored. The session will participate in the JTA transaction and will be committed or rolled back when that transaction is committed or rolled back, not by calling the session's commit or rollback methods. Since the argument is ignored, developers are recommended to use createSession(), which has no arguments, instead of this method.
      

      When there is a JTA Transaction in place, TomEE is returning non XA Sessions.

      Attachments

        Activity

          People

            exabrial Jonathan S Fisher
            exabrial Jonathan S Fisher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: