Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-2919

karaf jms:* commands works in non-transacted mode

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.1
    • Fix Version/s: 3.0.3, 4.0.0.M3
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      Karaf 3.0.1 on Windows 7 Professional

      Description

      It seems that karaf jms:* commands are not locally transactional as suggested by the following piece of code in org.apache.karaf.jms.internal.JmsConnector at line 97:

      return session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

      In my opinion, it could be interesting to create transacted session that the client explicitely commit. For instance:

      return session = connection.createSession(true, Session.CLIENT_ACKNOWLEDGE);

      This would secure the move a lot.

      Moreover, we could explicitely commit messages one by one so that problematic messages could be insulated in the DLQ.

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              eurofagl Alexandre Gallice
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: