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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 11.0.0.Beta1
    • 11.0.0.Alpha1
    • JMS
    • None
    • 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)
    • 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.

      Attachments

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              jmesnil1@redhat.com Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: