Uploaded image for project: 'WS-Commons'
  1. WS-Commons
  2. WSCOMMONS-468

The JMS transport doesn't use the ActiveMQ hack consistently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • Transports 1.0
    • Transport
    • None

    Description

      JMSOutTransportInfo#getDestination contains an ActiveMQ specific hack that prefixes the destination JNDI name with "dynamicQueues/" or "dynamicTopics/" if the initial lookup fails. On the other hand, JMSConnectionFactory#getDestination doesn't apply this hack. This means that the behavior in the JMSSender is inconsistent and depends on whether an existing connection factory definition is found in axis2.xml or not.

      In addition, ServiceTaskManager#getDestination uses yet another approach, namely to get the Destination object from Session#createQueue or Session#createTopic.

      Note that I believe that adding provider specific hacks is bad and I'm -1 for a solution that would simply add the hack to JMSConnectionFactory#getDestination.

      Attachments

        Activity

          People

            ruwan Ruwan Linton
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: