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

Details

    • Bug
    • Resolution: Done
    • 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)

    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

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: