Resource adpater configuration to consume message from RabbitMQ.

134 views
Skip to first unread message

Gopal Palanisamy

unread,
Mar 3, 2017, 2:49:49 PM3/3/17
to Generic JMS JCA Resource Adapter for JBoss AS
Hi,

My trying to setup a resource adapter in JBOSS 6.1 using wmq.jmsra.ra to consume messages from Rabbit MQ. I have updated JBOSS - standalone.xml with the following configuration.

<connection-definition pool-name="PIESRABBITMQ" enabled="true" jndi-name="PIESRABBITMQ" use-ccm="true" use-java-context="true" class-name="org.jboss.resource.adapter.jms.JmsManagedConnectionFactory">
      <config-property name="ConnectionFactory">com.rabbitmq.jms.admin.RMQConnectionFactory </config-property>
      <config-property name="port"> 5671 </config-property>
      <config-property name="host"> </config-property>
      <config-property name="virtualHost">***  </config-property>
      <config-property name="username"> ***</config-property>
      <config-property name="password"> ***</config-property>
    </connection-definition>

I get a JNDI name not found exception during server startup time. Would you guys review and let me know what connection attributes I was missing in the configuration?

Justin Bertram

unread,
Mar 3, 2017, 2:59:32 PM3/3/17
to Generic JMS JCA Resource Adapter for JBoss AS
I'm confused by a few details.  

You say you are using "JBOSS 6.1."  Are you using JBoss EAP 6.1 or JBoss AS 6.1?

You say you are, "...using wmq.jmsra.ra to consume messages from Rabbit MQ."  Is the "wmq.jmsra.ra" not the JCA resource adapter for IBM WebSphereMQ?  If so, I can't help you with that.  If not, please clarify.

Aside from all this, the project documentation details the connection attributes you need to make your connection.  Have you reviewed this documentation?

Gopal Palanisamy

unread,
Mar 3, 2017, 3:28:25 PM3/3/17
to Generic JMS JCA Resource Adapter for JBoss AS
Thanks for your reply. I'm using JBoss EAP 6.1. That's correct -  "wmq.jmsra.ra" is the JCA resource adapter for IBM WebSphereMQ. Sorry about that.

I will try to follow a provided links and let you know.

Thank you.

Justin Bertram

unread,
Mar 3, 2017, 4:44:42 PM3/3/17
to Generic JMS JCA Resource Adapter for JBoss AS
It should be pretty straight forward assuming RabbitMQ provides a JNDI and JMS client implementation.

If you get it working let me know.  I'd love to get your server and module configuration to add as examples in the documentation.
Reply all
Reply to author
Forward
0 new messages