Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-9678

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.1.0.ER3
    • 7.0.0.GA, 7.1.0.DR14, 7.1.0.DR18
    • ActiveMQ, JMS
    • None
    • Release Notes, Compatibility/Configuration, User Experience
    • 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)

      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.

        1. JmsTest.java
          2 kB
        2. server.log
          82 kB

            jmesnil1@redhat.com Jeff Mesnil
            rhn-support-tywickra Tyronne Wickramarathne
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: