Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5950

JMSOutTransportInfo does not correctly identify queue destinationType for WebLogic JMS client

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7.9
    • Fix Version/s: 1.7.10
    • Component/s: JMS transport
    • Labels:
      None
    • Environment:

      Description

      The constructor for JMSOutTransportInfo assumes that the passed in Destination will be either an instance of a Topic or a Queue.  In the case of WebLogic, the Destination object implements both interfaces.  So in the following code, both conditions are true, and you always end up with JMSConstants.DESTINATION_TYPE_TOPIC even when you have a queue : 

      destinationType = dest instanceof Topic ? JMSConstants.DESTINATION_TYPE_TOPIC
                                              : JMSConstants.DESTINATION_TYPE_QUEUE;
      

      When this occurs, an error is generated:  javax.jms.InvalidDestinationException: [JMSClientExceptions:055144]Destination must be a topic, "queue-name"

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joe.caristi Joseph Caristi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: