Wildfly Active MQ - Connecting with IBM MQ

395 views
Skip to first unread message

Amit Pareek

unread,
Jan 19, 2023, 1:14:35 AM1/19/23
to WildFly
Hi Team ,

We have a use case where we need to connect to Wildfly Active MQ with a remote IBM MQ server.

Messages has been published in IBM MQ(remote)  --->> These meesae to be consumed in Active MQ Queues .

While going through the Wildfly Documentation we found. few option -


2) Resource adapter .

Can someone with experience on using JMS bridge guide us ?
Also is there good article we can refer ?

Thanks,
Amit .

Emmanuel Hugonnet

unread,
Jan 19, 2023, 2:50:57 AM1/19/23
to wil...@googlegroups.com
The goal of the JMSD Bridge is to be able to consume messages from a destination and publish them in another one. It will use IBM MQ
resource adapter to connect to IBM MQ server and then it will use the Artemis ActiveMQ resource adapter to publish to Artemis broker.
http://www.mastertheboss.com/howto/jboss-jms6/configuring-jms-bridge-with-wildfly-10/ might help you
Regards
Emmanuel
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wildfly/7734c393-a17f-40c6-bc7c-8a20683601e9n%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/7734c393-a17f-40c6-bc7c-8a20683601e9n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Amit Pareek

unread,
Jan 19, 2023, 4:14:24 AM1/19/23
to WildFly
Thanks Emmanuel ,

Do you mean to configure JMS bridge we need to setup 
1) IBM MQ resource adapter ?
2) Artemis Active MQ resource adapter ? (which I believe its already present) 

Can 2 resource adapter unde mq system work in wildfly ?


Thanks . 

Emmanuel Hugonnet

unread,
Jan 19, 2023, 4:42:59 AM1/19/23
to wil...@googlegroups.com


Le 19/01/2023 à 10:14, Amit Pareek a écrit :
> Thanks Emmanuel ,
>
> Do you mean to configure JMS bridge we need to setup
> 1) IBM MQ resource adapter ?
Yes and define the connection factory and destinations to be used by the bidge
> 2) Artemis Active MQ resource adapter ? (which I believe its already present)
Yes, that pooled-connection-factory on the messaging subsystem.
>
> Can 2 resource adapter unde mq system work in wildfly ?
>
Yes they should.
>
> Thanks .
>
>
> On Thursday, 19 January 2023 at 13:20:57 UTC+5:30 ehug...@redhat.com wrote:
>
> The goal of the JMSD Bridge is to be able to consume messages from a destination and publish them in another one. It will use IBM MQ
> resource adapter to connect to IBM MQ server and then it will use the Artemis ActiveMQ resource adapter to publish to Artemis broker.
> http://www.mastertheboss.com/howto/jboss-jms6/configuring-jms-bridge-with-wildfly-10/ might help you
> Regards
> Emmanuel
>
> Le 19/01/2023 à 07:14, Amit Pareek a écrit :
> > Hi Team ,
> >
> > We have a use case where we need to connect to Wildfly Active MQ with a remote IBM MQ server.
> >
> > Messages has been published in IBM MQ(remote) --->> These meesae to be consumed in Active MQ Queues .
> >
> > While going through the Wildfly Documentation we found. few option -
> >
> > 1) Wildfly JMS bridge - - https://activemq.apache.org/components/artemis/documentation/1.0.0/jms-bridge.html
> >
> > 2) Resource adapter .
> >
> > Can someone with experience on using JMS bridge guide us ?
> > Also is there good article we can refer ?
> >
> > Thanks,
> > Amit .
> >
> > --
> > You received this message because you are subscribed to the Google Groups "WildFly" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/wildfly/7734c393-a17f-40c6-bc7c-8a20683601e9n%40googlegroups.com
> >
> <https://groups.google.com/d/msgid/wildfly/7734c393-a17f-40c6-bc7c-8a20683601e9n%40googlegroups.com?utm_medium=email&utm_source=footer
> <https://groups.google.com/d/msgid/wildfly/7734c393-a17f-40c6-bc7c-8a20683601e9n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/wildfly/2426a4f9-99e3-452e-aa25-3ac3fd895302n%40googlegroups.com
> <https://groups.google.com/d/msgid/wildfly/2426a4f9-99e3-452e-aa25-3ac3fd895302n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Amit Pareek

unread,
Jan 19, 2023, 5:04:34 AM1/19/23
to WildFly
Hi Emmanuel ,

Do you have the link for IBM MQ resource adapter , that will work for V26 and steps . 
Sorry Im new to this configuration , this will help me .


Thanks . 

Amit Pareek

unread,
Jan 20, 2023, 9:53:37 AM1/20/23
to WildFly
Hi Emmanuel ,

Another observation .

We are using EJB . Where primary queue is inbuilt Artemis Active mq.
But what I relaise , Wildfly EJB subsystem has <mdb>  section which has  <resource-adapter-ref resource-adapter-name section which is by default poinitng to Active MQ .
If we configure IBM resource adapter , then this configuration will be over ride and ejb mdbs will only look for ibm mq .
I think it will fail rest of the mdb which are reading data from Artemis queues .


<subsystem xmlns="urn:jboss:domain:ejb3:9.0">
            <session-bean>
                <stateless>
                    <bean-instance-pool-ref pool-name="slsb-strict-max-pool"/>
                </stateless>
                <stateful default-access-timeout="5000" cache-ref="distributable" passivation-disabled-cache-ref="simple"/>
                <singleton default-access-timeout="5000"/>
            </session-bean>
            <mdb>
                <resource-adapter-ref resource-adapter-name="${ejb.resource-adapter-name:activemq-ra.rar}"/>
                <bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
            </mdb>

            <pools>
                <bean-instance-pools>
                    <strict-max-pool name="mdb-strict-max-pool" derive-size="from-cpu-count" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                    <strict-max-pool name="slsb-strict-max-pool" derive-size="from-worker-pools" instance-acquisition-timeout="5" instance-acquisition-timeout-unit="MINUTES"/>
                </bean-instance-pools>
            </pools>

Thanks .
Reply all
Reply to author
Forward
0 new messages