Jboss & WSMQ 6.0
momch Feb 9, 2006 1:44 PMHello,
I'm trying to configure WSMQ 6.0 as a Jms Provider un Jboss jboss-4.0.3SP1
the server boot but nothing happens, and jboss didn't try to connect
to websphere MQ.
When I want to deploy an simple mdb who just read messages from wsmq
i get an error message :
jboss-srv:/usr/local/jboss/server # 19:39:50,406 INFO [EjbModule] Deploying MDB 19:39:51,117 WARN [JMSContainerInvoker] JMS provider failure detected: javax.naming.NameNotFoundException: WSMQQueueConnectionFactory not bound
I added in SERVER_HOME/lib the following files from wsmq rpms :
../lib/com.ibm.mqetclient.jar
../lib/com.ibm.mq.jar
../lib/com.ibm.mqjms.jar
../lib/com.ibm.mq.jms.Nojndi.jar
Don't know why WSMQQueueConnectionFactory is not present in jndi.
any ideas ?
thanks for any help.
this is my deploy/wsmq.xml
<?xml version="1.0" encoding="UTF-8"?> <connection-factories> <!-- non XA provider loader and connection factory --> <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider"> <attribute name="ProviderName">WSMQJMSProvider</attribute> <attribute name="ProviderAdapterClass"> org.jboss.jms.jndi.JNDIProviderAdapter </attribute> <attribute name="QueueFactoryRef">WSMQQueueConnectionFactory</attribute> <attribute name="TopicFactoryRef">WSMQTopicConnectionFactory</attribute> </mbean> <no-tx-connection-factory> <jndi-name>WSMQJms</jndi-name> <rar-name>jms-ra.rar</rar-name> <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition> <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</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> --> </no-tx-connection-factory> <!-- XA provider loader and connection factory --> <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.mq:service=JMSProviderLoader,name=XAWSMQJMSProvider"> <attribute name="ProviderName">XAWSMQJMSProvider</attribute> <attribute name="ProviderAdapterClass"> org.jboss.jms.jndi.JNDIProviderAdapter </attribute> <!-- The queue connection factory --> <attribute name="QueueFactoryRef">WSMQXAQueueConnectionFactory</attribute> <!-- The topic factory --> <attribute name="TopicFactoryRef">WSMQXATopicConnectionFactory</attribute> </mbean> <tx-connection-factory> <jndi-name>WSMQJmsXA</jndi-name> <xa-transaction/> <rar-name>jms-ra.rar</rar-name> <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition> <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property> <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/XAWSMQJMSProvider</config-property> <max-pool-size>20</max-pool-size> </tx-connection-factory> </connection-factories>