Axis2
  1. Axis2
  2. AXIS2-5546

In-out operation is not working with IBM Websphere MQ

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: Transports 1.0.0
    • Fix Version/s: None
    • Component/s: JMS transport
    • Labels:
      None
    • Environment:
      Operating System - Windows XP Professional
      Tomcat v6.0.28
      IBM Websphere MQ v7.0.1.2
      Axis2 v1.5.1
      JMS Transport version 1.0.0

      Description

      We are getting a ClassCastException (can not cast com.ibm.mq.jms.MQConnection to javax.jms.QueueConnection) with JMS Transport for in-out operation when message is sent to reply destination. Error occurs inside createJMSSender method of JMSOutTransportInfo class when the connection object is type casted in QueueConnection:

      if (connection != null) {
      if (destType == JMSConstants.QUEUE)

      { session = ((QueueConnection) connection). createQueueSession(false, Session.AUTO_ACKNOWLEDGE); producer = ((QueueSession) session).createSender((Queue) destination); }

      else

      { session = ((TopicConnection) connection). createTopicSession(false, Session.AUTO_ACKNOWLEDGE); producer = ((TopicSession) session).createPublisher((Topic) destination); }

      }

      As a work around, I modified the configuration to use the domain specific object com.ibm.mq.jms.MQQueueConnectionFactory instead of com.ibm.mq.jms.MQConnectionFactory and it workd fine.

      There is a need to change JMS transport to support JMS 1.1 specification in receiver as well sender consistently.

        Activity

        Hide
        Rajeev Verma added a comment -

        Edited as the issue reported earlier was due to some misconfiguration on my local system.

        Show
        Rajeev Verma added a comment - Edited as the issue reported earlier was due to some misconfiguration on my local system.

          People

          • Assignee:
            Unassigned
            Reporter:
            Rajeev Verma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development