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

Using JMSMessageID as correlationID for JMS messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • 1.4
    • JMS transport
    • None
    • OS: Windows XP Pro 2002 Service Pack 2

    Description

      The correlationID solution currently in place in Axis2 version 1.4 does not work.

      Currently the option is available to specify a correlationID but when the MessageConsumer is created no MessageSelector is specified. This means that the MessageConsumer will take any message off the queue.

      Also, currently the only way to use a correlationID is to explicity specify an ID via the JMSConstants.JMS_COORELATION_ID property. This is very restrictive for those who wish to use the option of using the JMSMessageID of the message as the correlationID.

      I have attached a proposed solution which firstly ensures that the MessageConsumer is created using a MessageSelector. Also i have given the user a choice, if they explicity specify a correlationID then this will be used otherwise the JMSMessageID of the message will be used as the correlationID.

      Thanks,
      Cathal

      Attachments

        1. JMSMessageReceiver.java
          10 kB
          Cathal Callaghan
        2. JMSSender.java
          17 kB
          Cathal Callaghan

        Activity

          People

            asankha Asankha Chamath Perera
            callagc4 Cathal Callaghan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: