<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    JBOSS EAP6.0.1 with IBM MQ problem
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/zainab.madawala">Zainab Madawala</a> in <i>JBoss Messaging</i> - <a href="https://community.jboss.org/message/800756#800756">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span class="postbody">Hello, <br/>&#160; <br/> We are trying to integrate JBOSS EAP6.0.1 with IBM MQ. We have an application working on Websphere 7 with IBM MQ for JMS. <br/>&#160; <br/> We are in process of migration to JBOSS EAP6.0.1. <br/>&#160; <br/> With regards to setup and information available on various JBOSS forums, we managed to perform a few setup for the Queue Connection factories and Queues. <br/>&#160; <br/> With JBOSS EAP6.0.1, We have copied the "wmq.jmsra.rar" from the IBM MQ to JBOSS Standlalone deployment folder. <br/> We modified the standalone-full.xml to include the resource-adapter pertaining to IBM MQ. <br/>&#160; <br/> Snippet of configuration from standalone-full.xml: <br/>&#160; <br/> &lt;subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"&gt; <br/> &lt;resource-adapters&gt; <br/> &lt;resource-adapter&gt; <br/> &lt;archive&gt; <br/> wmq.jmsra.rar <br/> &lt;/archive&gt; <br/> &lt;transaction-support&gt;NoTransaction&lt;/transaction-support&gt; <br/> &lt;connection-definitions&gt; <br/> &lt;connection-definition class-name="com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl" jndi-name="java:jboss/jms/myQCF" pool-name="jms/myQCF"&gt; <br/> &lt;config-property name="hostName"&gt; <br/> XXXXXX (Server Name) <br/> &lt;/config-property&gt; <br/> &lt;config-property name="channel"&gt; <br/> YYYYYY (Channel Name) <br/> &lt;/config-property&gt; <br/> &lt;config-property name="transportType"&gt; <br/> CLIENT <br/> &lt;/config-property&gt; <br/> &lt;config-property name="queueManager"&gt; <br/> ZZZZZ (Queue Manager Name) <br/> &lt;/config-property&gt; <br/> &lt;/connection-definition&gt; <br/> &lt;/connection-definitions&gt; <br/> &lt;admin-objects&gt; <br/> &lt;admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/myOutPostQueue" pool-name="OUT_POST"&gt; <br/> &lt;config-property name="baseQueueName"&gt; <br/> OUT_POST <br/> &lt;/config-property&gt; <br/> &lt;/admin-object&gt; <br/> &lt;admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/myOutAckQueue" pool-name="OUTPUT_REPLY_QUEUE"&gt; <br/> &lt;config-property name="baseQueueName"&gt; <br/> OUTPUT_REPLY_QUEUE <br/> &lt;/config-property&gt; <br/> &lt;/admin-object&gt; <br/> &lt;admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/myOutRespQueue" pool-name="OUTPUT_PDF_RESP"&gt; <br/> &lt;config-property name="baseQueueName"&gt; <br/> IVN_ADV_QUEUE <br/> &lt;/config-property&gt; <br/> &lt;/admin-object&gt; <br/> &lt;/admin-objects&gt; <br/> &lt;/resource-adapter&gt; <br/> &lt;/resource-adapters&gt; <br/> &lt;/subsystem&gt; <br/>&#160; <br/> The connection-definition class-name are as per the ra.xml available under wmq.jmsra.rar\META-INF. <br/>&#160; <br/> With the above setup We are able to see the JNDI created for the Queues and Queue Connection factory. <br/>&#160; <br/> We have used Spring based JMS setup (JMSTemplate102) for getting the QCF and sending message. <br/>&#160; <br/> However, at the time of calling send method on jmsTemplate102, we get below error: <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) Caused by: javax.resource.ResourceException: IJ000658: Unexpected throwable while trying to create a connection: null <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:378) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:302) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSConnection(ConnectionFactoryImpl.java:189) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;... 135 more <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) Caused by: com.ibm.mq.connector.DetailedResourceException: MQJCA1012: Failed to create a JMS connection factory., error code: MQJCA1012 A JCA ManagedConnectionFactory object was not able to create a WebSphere MQ classes for JMS ConnectionFactory object. Check the properties of the ConnectionFactory object. <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:124) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:100) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createConnection(ManagedQueueConnectionFactoryImpl.java:161) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ManagedConnectionImpl.&lt;init&gt;(ManagedConnectionImpl.java:131) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ManagedQueueConnectionImpl.&lt;init&gt;(ManagedQueueConnectionImpl.java:66) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createManagedConnection(ManagedQueueConnectionFactoryImpl.java:138) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:775) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:345) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;... 141 more <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) Caused by: javax.jms.JMSException: com.ibm.msg.client.jms.internal.JmsFactoryFactoryImpl cannot be cast to com.ibm.msg.client.jms.JmsFactoryFactory <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.msg.client.jms.JmsFactoryFactory.getInstance(JmsFactoryFactory.java:199) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.ConnectionFactoryBuilder.constructJmsConnectionFactory(ConnectionFactoryBuilder.java:230) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.ConnectionFactoryBuilder.createConnectionFactory(ConnectionFactoryBuilder.java:124) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createConnectionFactory(ManagedConnectionFactoryImpl.java:431) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createConnection(ManagedQueueConnectionFactoryImpl.java:157) <br/>&#160; <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5) &#160;&#160;&#160;&#160;&#160;... 146 more <br/>&#160; <br/>&#160; <br/>&#160; <br/> Any help would be appreciated. <br/> Also, if someone have configured IBM MQ with EAP6.0.1 (Without MDBs), pls guide us. <br/>&#160; <br/> Thanks.</span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/800756#800756">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Messaging at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2042">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>