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

    Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 7.0.0.GA, 7.1.0.DR14, 7.1.0.DR18
    • Fix Version/s: 7.1.0.ER3
    • Component/s: ActiveMQ, JMS
    • Labels:
      None
    • Target Release:
    • 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

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

            Issue Links

              Activity

                People

                • Assignee:
                  jmesnil Jeff Mesnil
                  Reporter:
                  bershath27 Tyronne Wickramarathne
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: