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

Messages are not being routed to MDB with external AMQ broker instance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 7.3.6.GA, 7.4.0.CR2
    • ActiveMQ, JMS
    • None
    • False
    • False
    • Undefined
    • Hide
      1. Prepare AMQ Broker instance with attached broker.xml
      2. Prepare EAP 7.4.0.GA with attached configuration in standalone mode and start the EAP with these parameters: -Djdk=JAVA18_DEFAULT -DQ1=Q1MESSAGINGLABJAVA18_DEFAULT -DQ2=Q2MESSAGINGLABJAVA18_DEFAULT -DPERF.Q1=jms/queue/PQ1MESSAGINGLABJAVA18_DEFAULT -DPERF.Q2=jms/queue/PQ2MESSAGINGLABJAVA18_DEFAULT -DT1=T1MESSAGINGLABJAVA18_DEFAULT -DT2=T2MESSAGINGLABJAVA18_DEFAULT
      3. Deploy attached deployment servletp.war which contains servlet for sending messages to queue
      4. Deploy attached deployment performanceMdb.jar containing MDB which should resend messages from queue to queue
      5. Use PerformanceServlet to send messages to PQ1 queue: curl "http://localhost:8080/PerformanceServlet/PerformanceServlet?operation=send&count=1000&type=1&small=512&large=250&cycles=1"
      6. Check through JMX (using e.g. JConsole) that RoutedMessageCount attribute PERF.Q1 queue on broker has value 1000
      7. Check that PERF.Q2 queue doesn't contain any messages and didn't route any messages since MDB's onMessage was never called
      Show
      Prepare AMQ Broker instance with attached broker.xml Prepare EAP 7.4.0.GA with attached configuration in standalone mode and start the EAP with these parameters: -Djdk=JAVA18_DEFAULT -DQ1=Q1MESSAGINGLABJAVA18_DEFAULT -DQ2=Q2MESSAGINGLABJAVA18_DEFAULT -DPERF.Q1=jms/queue/PQ1MESSAGINGLABJAVA18_DEFAULT -DPERF.Q2=jms/queue/PQ2MESSAGINGLABJAVA18_DEFAULT -DT1=T1MESSAGINGLABJAVA18_DEFAULT -DT2=T2MESSAGINGLABJAVA18_DEFAULT Deploy attached deployment servletp.war which contains servlet for sending messages to queue Deploy attached deployment performanceMdb.jar containing MDB which should resend messages from queue to queue Use PerformanceServlet to send messages to PQ1 queue: curl "http://localhost:8080/PerformanceServlet/PerformanceServlet?operation=send&count=1000&type=1&small=512&large=250&cycles=1" Check through JMX (using e.g. JConsole) that RoutedMessageCount attribute PERF.Q1 queue on broker has value 1000 Check that PERF.Q2 queue doesn't contain any messages and didn't route any messages since MDB's onMessage was never called

    Description

      onMessage in MDB is never invoked.

      This can be reproduced with following combinations (other were not tested):

      EAP AMQ
      7.4.0.GA-CR2 7.8.1, 7.8.2-CR5
      7.3.6 7.8.1

      Attachments

        1. 20210624-112028529standalone-full.xml
          36 kB
          Jan Kašík
        2. broker.xml
          9 kB
          Jan Kašík
        3. servletp.war
          35 kB
          Jan Kašík

        Activity

          People

            ehugonne1@redhat.com Emmanuel Hugonnet
            jkasik@redhat.com Jan Kašík
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: