<!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/>  <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/>  <br/> We are in process of migration to JBOSS EAP6.0.1. <br/>  <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/>  <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/>  <br/> Snippet of configuration from standalone-full.xml: <br/>  <br/> <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> <br/> <resource-adapters> <br/> <resource-adapter> <br/> <archive> <br/> wmq.jmsra.rar <br/> </archive> <br/> <transaction-support>NoTransaction</transaction-support> <br/> <connection-definitions> <br/> <connection-definition class-name="com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl" jndi-name="java:jboss/jms/myQCF" pool-name="jms/myQCF"> <br/> <config-property name="hostName"> <br/> XXXXXX (Server Name) <br/> </config-property> <br/> <config-property name="channel"> <br/> YYYYYY (Channel Name) <br/> </config-property> <br/> <config-property name="transportType"> <br/> CLIENT <br/> </config-property> <br/> <config-property name="queueManager"> <br/> ZZZZZ (Queue Manager Name) <br/> </config-property> <br/> </connection-definition> <br/> </connection-definitions> <br/> <admin-objects> <br/> <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/myOutPostQueue" pool-name="OUT_POST"> <br/> <config-property name="baseQueueName"> <br/> OUT_POST <br/> </config-property> <br/> </admin-object> <br/> <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/myOutAckQueue" pool-name="OUTPUT_REPLY_QUEUE"> <br/> <config-property name="baseQueueName"> <br/> OUTPUT_REPLY_QUEUE <br/> </config-property> <br/> </admin-object> <br/> <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/jms/myOutRespQueue" pool-name="OUTPUT_PDF_RESP"> <br/> <config-property name="baseQueueName"> <br/> IVN_ADV_QUEUE <br/> </config-property> <br/> </admin-object> <br/> </admin-objects> <br/> </resource-adapter> <br/> </resource-adapters> <br/> </subsystem> <br/>  <br/> The connection-definition class-name are as per the ra.xml available under wmq.jmsra.rar\META-INF. <br/>  <br/> With the above setup We are able to see the JNDI created for the Queues and Queue Connection factory. <br/>  <br/> We have used Spring based JMS setup (JMSTemplate102) for getting the QCF and sending message. <br/>  <br/> However, at the time of calling send method on jmsTemplate102, we get below error: <br/>  <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/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:378) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:397) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:365) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:329) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:302) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:464) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ConnectionFactoryImpl.createManagedJMSConnection(ConnectionFactoryImpl.java:189) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      ... 135 more <br/>  <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/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:124) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.services.JCAExceptionBuilder.buildException(JCAExceptionBuilder.java:100) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createConnection(ManagedQueueConnectionFactoryImpl.java:161) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:131) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ManagedQueueConnectionImpl.<init>(ManagedQueueConnectionImpl.java:66) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createManagedConnection(ManagedQueueConnectionFactoryImpl.java:138) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:775) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:345) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      ... 141 more <br/>  <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/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.msg.client.jms.JmsFactoryFactory.getInstance(JmsFactoryFactory.java:199) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.ConnectionFactoryBuilder.constructJmsConnectionFactory(ConnectionFactoryBuilder.java:230) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.ConnectionFactoryBuilder.createConnectionFactory(ConnectionFactoryBuilder.java:124) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl.createConnectionFactory(ManagedConnectionFactoryImpl.java:431) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      at com.ibm.mq.connector.outbound.ManagedQueueConnectionFactoryImpl.createConnection(ManagedQueueConnectionFactoryImpl.java:157) <br/>  <br/> 17:15:22,852 ERROR [stderr] (http-localhost/127.0.0.1:8080-5)      ... 146 more <br/>  <br/>  <br/>  <br/> Any help would be appreciated. <br/> Also, if someone have configured IBM MQ with EAP6.0.1 (Without MDBs), pls guide us. <br/>  <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>