Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8928

JMS broker does not allow the use of a transacted session in a Servlet

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: JMS
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Please create a transacted session inside a Servlet to send messages to a destination.
      Deploy the Servlet and try to access the webpage to send a message
      The JMS broker throws the following exception disallowing the use of a transacted session inside a Servlet :

      17:21:29,473 ERROR [stderr] (default task-1) javax.jms.JMSException: Could not create a session: AMQ159004: Invalid Session Mode SESSION_TRANSACTED
      ....
      ....
      17:21:29,477 ERROR [stderr] (default task-1) Caused by: javax.jms.JMSRuntimeException: AMQ159004: Invalid Session Mode SESSION_TRANSACTED
      17:21:29,477 ERROR [stderr] (default task-1) at org.apache.activemq.artemis.ra.ActiveMQRASessionFactoryImpl.allocateConnection(ActiveMQRASessionFactoryImpl.java:837)

      Show
      Please create a transacted session inside a Servlet to send messages to a destination. Deploy the Servlet and try to access the webpage to send a message The JMS broker throws the following exception disallowing the use of a transacted session inside a Servlet : 17:21:29,473 ERROR [stderr] (default task-1) javax.jms.JMSException: Could not create a session: AMQ159004: Invalid Session Mode SESSION_TRANSACTED .... .... 17:21:29,477 ERROR [stderr] (default task-1) Caused by: javax.jms.JMSRuntimeException: AMQ159004: Invalid Session Mode SESSION_TRANSACTED 17:21:29,477 ERROR [stderr] (default task-1) at org.apache.activemq.artemis.ra.ActiveMQRASessionFactoryImpl.allocateConnection(ActiveMQRASessionFactoryImpl.java:837)
    • Affects:
      Release Notes, Compatibility/Configuration, User Experience

      Description

      The JMS broker does not allow the creation of a transacted session inside a Servlet. It is essential for a Servlet to use a transacted session at the absence of JTA support.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jmesnil Jeff Mesnil
                  Reporter:
                  jmesnil Jeff Mesnil
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: