[jboss-dev-forums] [JBoss Messaging Development] - Re: Sending messages from jboss to other application server(
mnenchev
do-not-reply at jboss.com
Wed Nov 4 05:10:29 EST 2009
Up to now no success with this. I want just to send messages to websphere server. The people that develop the application using websphere gave me
queue.manager.name=...
queue.manager.host=...
queue.manager.port=...
queue.manager.channel=...
queuename=...
And told me to send messages there. How to do it no idea.
I tried this configuration:
<?xml version="1.0" encoding="UTF-8"?>
|
| <connection-factories>
|
| <!-- connection factory definition -->
| <tx-connection-factory>
| <jndi-name>TESTCF</jndi-name>
| <xa-transaction />
| <rar-name>wmq.jmsra.rar</rar-name>
| <connection-definition>javax.jms.ConnectionFactory</connection-definition>
| <config-property name="channel" type="java.lang.String">TEST.CHANNEL</config-property>
| <config-property name="hostName" type="java.lang.String">192.168.2.100</config-property>
| <config-property name="port" type="java.lang.String">1414</config-property>
| <config-property name="queueManager" type="java.lang.String">TESTQM</config-property>
| <config-property name="transportType" type="java.lang.String">CLIENT</config-property>
| <security-domain-and-application>JmsXARealm</security-domain-and-application>
| </tx-connection-factory>
|
| <!-- admin object definition -->
| <mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=testqueue">
| <attribute name="JNDIName">testqueue</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=TESTQM
| baseQueueName=testqueue
| expiry=EXP_UNLIMITED
| </attribute>
| </mbean>
| </connection-factories>
|
It is deployed, but when i attempt to send message the QueueConnectionFactory lookup returns me ConnectionFactoryImpl
and so it throws classcastexception
Error:
java.lang.ClassCastException: com.ibm.mq.connector.outbound.ConnectionFactoryImpl cannot be cast to javax.jms.QueueConnectionFactory
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263896#4263896
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263896
More information about the jboss-dev-forums
mailing list