2 Replies Latest reply on Nov 11, 2009 8:26 AM by Vicky Kak

    How to send jms messages from jboss to websphere

    mariqn nenchev Novice

      Hi, i am using jboss 5.1.0. I need to send messages to other application deployed on websphere 6( or may higher).
      Up to now no success with this. 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 found some tutorial that explains how to do it but i didn't get it to work.
      I deployed wmq.jmsra.rar (from wsmq)
      I tried this configuration wmq.jmsra.xml:

      <?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