0 Replies Latest reply on May 8, 2018 5:07 PM by Ravi Soni

    How to Consume messages in MDB (in Wildfly12) from Remote Artimis 2.5.0 Cluster.

    Ravi Soni Newbie



      Currently we run HornetQ server deployed wiht in Jboss EAP 6.x servers,


      Now we are planing to upgrade that all to use Wildfly12 and Atrimis 2.5.0.

      we plan to deploy saperate Artimis 2.5.0 broker cluster by it self. and bunch of Wildfly12 cluster without messanging subsystem.


      We are using too many MDBs in out system,


      Now I want point my all MDBs to look queue/topic from Remote Artimis cluster.


      I reffer few old post

      1) Consuming messages from a remote WildFly JMS Server

      2) Re: How to configure an MDB to read a queue on a remote Wildfly server.


      non of working as i require,


      As of now if i specify below activation properties, i tried to change port 5445 to others to, non of working.


      @MessageDriven(activationConfig = {  
      @ActivationConfigProperty(propertyName = "destinationLookup", propertyValue = "AuditLog-InputQueue"),  
      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),  
      @ActivationConfigProperty(propertyName = "connectionParameters", propertyValue = "host=;port=61616;http-upgrade-enabled=true"),  
      @ActivationConfigProperty(propertyName = "user", propertyValue = "root"),  
      @ActivationConfigProperty(propertyName = "password", propertyValue = "rootroot"), 
      @ActivationConfigProperty(propertyName = "clientID", propertyValue = "AuditLogMDB"),
      @ActivationConfigProperty(propertyName = "connectorClassName", propertyValue = "org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnectorFactory")  
      }, mappedName = "AuditLog-InputQueue")


      This configuration start new Artimis server Adapter inside Wildfly, and


      2018-05-08 16:30:20,784 INFO  [org.apache.activemq.artemis.ra] (default-threads - 6) AMQ151005: awaiting server availability

      2018-05-08 16:30:20,786 INFO  [org.jboss.as.server] (External Management Request Threads -- 1) WFLYSRV0010: Deployed "auditlog-ear-1.0.3-SNAPSHOT.ear" (runtime-name : "auditlog-ear-1.0.3-SNAPSHOT.ear")

      2018-05-08 16:30:22,787 INFO  [org.apache.activemq.artemis.ra] (default-threads - 6) AMQ151001: Attempting to reconnect org.apache.activemq.artemis.ra.inflow.ActiveMQActivationSpec(ra=org.wildfly.extension.messaging.activemq.ActiveMQResourceAdapter@2bd07716 destination=AuditLog-InputQueue destinationType=javax.jms.Queue ack=Auto-acknowledge durable=false clientID=AuditLogMDB user=root password=**** maxSession=15)

      this also require to keep Messanging subsystem with in wildfly configuration, this does not work if i remove Messanging subsystem.


      <extension module="org.wildfly.extension.messaging-activemq"/>

      <subsystem xmlns="urn:jboss:domain:messaging-activemq:3.0"/>

      I want to remove Messanging from Wildfly and complete relay on external Artimis cluster only. 


      Can some one point me to sample code in github?


      I appreciate all you help in advance.