Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-2472

Make JMS session creation configurable

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • jBPM 3.2.7
    • jBPM 3.3.1 GA, jBPM 3.2.5 GA
    • Runtime Engine
    • None

      The kind of session (transacted vs. non-transacted) that jBPM uses is not configurable: it is hard coded in JmsMessageService.java
      session = connection.createSession(true, Session.SESSION_TRANSACTED);

      That line was changed as follows to make async continuations work with Weblogic.
      session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE) ;

      The reason is that JBoss and Weblogic handle JMS sessions within a JTA transaction just in the opposite way. For details read:

      Weblogic: http://e-docs.bea.com/wls/docs103/jms/trans.html#wp1025537
      JBoss: http://www.odi.ch/prog/jms-tx.php

            aguizar_jira Alejandro Guizar (Inactive)
            aguizar_jira Alejandro Guizar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: