0 Replies Latest reply on Jun 17, 2013 7:58 AM by Girish H A Branched from an earlier discussion.

    JBoss AS5 - How do I deploy an MDB using CCDT and MQ resource adapter?

    Girish H A Newbie

      Hello There,

       

      Apologies for posting JBoss AS 5 questions here.  I am new to JBoss, hence guide me to right forum, this is not the right one.

       

      We are also running with same issue.  We are trying to integrate MDB (on JBoss AS 5.1) with IBM MQ 7.1.0.0 via CCDT.  We are using DS.XML to construct JNDI for JBoss.  We are encountering errors which are appended below.  May I seek some guidance please?

       

      Datasource File (JMS-DS.XML)

      <?xml version="1.0" encoding="UTF-8"?>

       

      <connection-factories>

       

      <!-- ==================================================================== -->

      <!-- WSMQ connection factories -->

      <!-- ==================================================================== -->

       

         <!-- The WSMQ JMS provider loader  -->

      <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=Q">

      <attribute name="JNDIName">

      queue/Q

      </attribute>

      <depends optional-attribute-name="RARName">

      jboss.jca:service=RARDeployment,name='wmq.jmsra.rar'

      </depends>

      <attribute name="Type">javax.jms.Queue</attribute>

      <attribute name="Properties">

      baseQueueManagerName=*groupname (MQ Cluster Group Name)

      baseQueueName=q (MQ Queue Name)

      targetClient=JMS

      </attribute>

      </mbean>

       

       

         <!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->

      <tx-connection-factory>

      <jndi-name>WSMQJms</jndi-name>

      <xa-transaction/>

      <rar-name>wmq.jmsra.rar</rar-name>

        <connection-definition>javax.jms.ConnectionFactory</connection-definition>

      <config-property name="ccdtURL" type="java.lang.String">file:///C:/JNDI-Directory/AMQCLCHL.TAB</config-property>

      <config-property name="queueManager" type="java.lang.String">*groupname</config-property>

      <config-property name="transportType" type="java.lang.String">MQJMS_TP_CLIENT_MQ_TCPIP</config-property>

      <use-java-context>false</use-java-context>

      <max-pool-size>20</max-pool-size>

      <!--<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>

      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Queue</config-property>

      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/WSMQJMSProvider</config-property>

      <max-pool-size>20</max-pool-size> -->

       

            <security-domain-and-application>JmsXARealm</security-domain-and-application>

      <!-- <depends>jboss.messaging:service=ServerPeer</depends> -->

      </tx-connection-factory>

       

        </connection-factories>

       

      Error Message:

      ERROR [org.jboss.resource.adapter.jms.inflow.JmsActivation] (WorkManager(2)-13) Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@125d6d3(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@3b66f7 destination=queue/q destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)

      1. javax.naming.NameNotFoundException: q not bound

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

      at org.jnp.server.NamingServer.lookup(NamingServer.java:443)

      at org.jnp.server.NamingServer.lookup(NamingServer.java:399)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)

      at javax.naming.InitialContext.lookup(Unknown Source)

      at org.jboss.util.naming.Util.lookup(Util.java:222)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:292)

      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:733)

      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)

      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

      at java.lang.Thread.run(Unknown Source)

      2013-06-17 16:19:37,390 INFO  [org.jboss.resource.adapter.jms.inflow.JmsActivation] (WorkManager(2)-13) Attempting to reconnect