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

[GSS](7.4.z) ENTMQBR-8918 - AMQ is trying to retrieve all the destinations which is being used in MDB in all pooledconnectionfactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 7.4.18.GA
    • None
    • None
    • None
    • False
    • None
    • False

      I am using EAP 7.4.15, the latest version.
      I followed the sample: helloworld-mdb and deployed the app.
      When I added the below part,

                  <remote-connector name="netty-remote-broker" socket-binding="artemis-external-broker"/>
                  <pooled-connection-factory name="activemq-ra-remote" entries="java:/RemoteJmsXA java:jboss/RemoteJmsXA" connectors="netty-remote-broker" ha="false" transaction="xa" user="${artemis.user}" password="${artemis.password}" min-pool-size="15" max-pool-size="30" statistics-enabled="true">
                          <inbound-config use-jndi="true" jndi-params="java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory;java.naming.provider.url=tcp://${artemis.broker.host}:${artemis.broker.port};java.naming.security.principal=${artemis.user};java.naming.security.credentials=${artemis.password}" rebalance-connections="true" setup-attempts="-1" setup-interval="5000"/>
                  </pooled-connection-factory>
      
               <outbound-socket-binding name="artemis-external-broker">
                  <remote-destination host="${artemis.broker.host}" port="${artemis.broker.port}"/>
              </outbound-socket-binding> 
      

      My app does not work, I can send message to the MDB, but cannot consume the message. In the log I can see the blow warning endless:

      16:25:39,628 WARN  [org.apache.activemq.artemis.ra] (default-threads - 1) AMQ153005: Unable to retrieve "queue/HELLOWORLDMDBQueue" from JNDI. Creating a new "javax.jms.Queue" named "jms.queue.HELLOWORLDMDBQueue" to be used by the MDB.
      16:25:39,724 INFO  [org.apache.activemq.artemis.ra] (default-threads - 1) AMQ151000: awaiting topic/queue creation queue/HELLOWORLDMDBQueue
      

      After checking the debug log, it is using the remote connector, but my app is not using the remote broker.

      2024-03-13 15:48:24,567 DEBUG [org.apache.activemq.artemis.ra.inflow.ActiveMQActivation] (default-threads - 2) Using context {java.naming.ldap.version=3, java.naming.factory.url.pkgs=org.jboss.as.naming.interfaces, java.naming.security.principal=admin, java.naming.factory.initial=org.apache.activemq.artemis.jndi.ActiveMQInitialContextFactory, java.naming.security.credentials=admin, java.naming.provider.url=tcp://localhost:61616} for org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@9f1bfbc destination=queue/HELLOWORLDMDBQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=null user=null maxSession=15)
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra.inflow.ActiveMQActivation] (default-threads - 2) setupDestination(javax.naming.InitialContext@1fc40fc6)
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec] (default-threads - 2) getDestinationType()
      2024-03-13 15:48:24,567 DEBUG [org.apache.activemq.artemis.ra.inflow.ActiveMQActivation] (default-threads - 2) Destination type defined as javax.jms.Queue
      2024-03-13 15:48:24,567 DEBUG [org.apache.activemq.artemis.ra.inflow.ActiveMQActivation] (default-threads - 2) Retrieving javax.jms.Queue "queue/HELLOWORLDMDBQueue" from JNDI
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra] (default-threads - 2) isEnable1xPrefixes()
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra] (default-threads - 2) isEnable1xPrefixes()
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra] (default-threads - 2) isEnable1xPrefixes()
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra] (default-threads - 2) isEnable1xPrefixes()
      2024-03-13 15:48:24,567 TRACE [org.apache.activemq.artemis.ra] (default-threads - 2) isEnable1xPrefixes()
      2024-03-13 15:48:24,567 WARN  [org.apache.activemq.artemis.ra] (default-threads - 2) AMQ153005: Unable to retrieve "queue/HELLOWORLDMDBQueue" from JNDI. Creating a new "javax.jms.Queue" named "jms.queue.HELLOWORLDMDBQueue" to be used by the MDB.
      

            istudens@redhat.com Ivo Studensky
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: