2 Replies Latest reply on Feb 15, 2016 8:45 AM by efi-capahjo

    IBM MQ Resource adaptor usage Issue with JBoss 6.3

    Chetan Joshi Newbie

      Hi All,


      I am trying to use IBM MQ adaptor in JBoss first time (even using JBoss for the first time). We are migrating our application from Websphere 7 to JBoss 6.3. And for that i need configure same MQ's which we used to use on IBM Websphere. Hence I have started configuring IBM Resource adaptor. Below is the standalone.xml file configuration.

      Below config works fine however I am not able to get QueueConnectionFactory with code (QueueConnectionFactory) context.lookup("java:/comp/env/serviceQCF") as it throws class cast exception (com.ibm.mq.connector.outbound.ConnectionFactoryImpl cannot be cast to javax.jms.QueueConnectionFactory).

      And when I use <connection-definition class-name="javax.jms.QueueConnectionFactory" jndi-name="java:/comp/env/serviceQCF" enabled="true" pool-name="ConnectionClass">, JBoss is throwing exception javax.naming.NameNotFoundException: comp/env/serviceQCF -- service jboss.naming.context.java.comp.env.serviceQCF


      I have tried using ConnectionFactory however same result (Name not found exception)


            <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">


                      <resource-adapter id="wmq.jmsra.rar">






                              <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/comp/env/serviceQCF" enabled="true" pool-name="ConnectionClass">

                                  <config-property name="port">



                                  <config-property name="channel">



                                  <config-property name="hostName">



                                  <config-property name="transportType">



                                  <config-property name="queueManager">












      Do I need to configure something Else? Do i need to add/modify any classpath? If yes where and how?