Axis2
  1. Axis2
  2. AXIS2-5559

ServiceTaskManager fails to commit if session is transacted and always rollsback when using swiftMQ 2.1.3

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: Transports 1.0.0
    • Fix Version/s: 1.6.3, 1.7.0
    • Component/s: JMS transport
    • Labels:
      None
    • Environment:
      SwiftMQ 2.1.3,

      Description

      Hi,

      I have an issue reading JMS messages from an old JMS 1.0 implementation provided by swiftMQ as part of a transaction. The transaction always rolls back and never commits a read from the queue.

      Looking at ServiceTaskManager, in the method handleMessage, the logic it takes is:

      1. pass message to jmsMessageReceiver for processing
      2. close the consumer
      3. commit or rollback transaction on session.
      4. close session
      5. close connection

      It appears though that at stage 2 with swiftMQ the open transaction is rolledback. This means the commit in stage 3 does nothing.

      The solution is swap stages 2 and 3 such that the open transaction is commited before the consumer is closed.

      I noticted this issue on the verison of Transports (1.0) that ships with WSO2's ESB product but it appears that the same issue applies to 1.1 as well.

      Paul Inglis

        Activity

        Paul Inglis created issue -
        Paul Inglis made changes -
        Field Original Value New Value
        Attachment ServiceTaskManager.patch.txt [ 12431542 ]
        Ruwan Linton made changes -
        Assignee Ruwan Linton [ ruwan ]
        Ruwan Linton made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andreas Veithen made changes -
        Project WS-Commons [ 12310250 ] Axis2 Transports [ 12311160 ]
        Key WSCOMMONS-524 TRANSPORTS-40
        Affects Version/s 1.0.0 [ 12315221 ]
        Affects Version/s Transports 1.0 [ 12313665 ]
        Affects Version/s Transports 1.1 [ 12313719 ]
        Component/s JMS [ 12313652 ]
        Component/s Transport [ 12312620 ]
        Fix Version/s 1.6.0 [ 12315222 ]
        Fix Version/s Transports 1.1 [ 12313719 ]
        Andreas Veithen made changes -
        Project Axis2 Transports [ 12311160 ] Axis2 [ 10611 ]
        Key TRANSPORTS-40 AXIS2-5559
        Affects Version/s 1.0.0 [ 12324406 ]
        Affects Version/s 1.0.0 [ 12315221 ]
        Fix Version/s 1.7.0 [ 12316136 ]
        Fix Version/s 1.6.3 [ 12320771 ]
        Fix Version/s 1.7.0 [ 12315222 ]
        Component/s JMS [ 12320603 ]
        Component/s JMS [ 12313652 ]

          People

          • Assignee:
            Ruwan Linton
            Reporter:
            Paul Inglis
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development