- I want use ActiveMQ (Artemis) and IBM MQ at the same time.
- ActiveMQ built-in Wildfly Application Server where was deployed my application.
- I want use two resource adapters, first for ActiveMQ and second for IBM MQ, but I can not configure it.
- Here is my configuration for
standalone-full.xml
:
<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>
<resource-adapters>
<resource-adapter id="wmq.jmsra.rar">
<archive>wmq.jmsra-9.1.2.0.rar</archive>
<transaction-support>NoTransaction</transaction-support>
<config-property name="startupRetryCount">1</config-property>
<connection-definitions>
<connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:jboss/jms/ivt/IVTCF" enabled="true" use-java-context="true" pool-name="IVTCF">
<config-property name="channel">A.CHANNEL01</config-property>
<config-property name="hostName">any-host</config-property>
<config-property name="transportType">1</config-property>
<config-property name="queueManager">QMANAG</config-property>
<config-property name="port">1415</config-property>
</connection-definition>
</connection-definitions>
<admin-objects>
<admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/TEST.Q" pool-name="TEST.REQ">
<config-property name="baseQueueName">TEST.Q</config-property>
<config-property name="baseQueueManagerName">QMANAG</config-property>
</admin-object>
</admin-objects>
</resource-adapter>
</resource-adapters>
- How can I add second adapter here?
- If I replace:
<resource-adapter-ref resource-adapter-name="${ejb.resource-adapter-name:activemq-ra.rar}"/>
with
<resource-adapter-ref resource-adapter-name="wmq.jmsra.rar"/>
my mdb-bean for IBM MQ work well, but mdb-beans for ActiveMQ doesn`t work.