Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1871

camel-jms - DefaultJmsKeyFormatStrategy should replace . with _DOT_ to avoid conflicting with end user using _

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.1, 2.0-M3
    • 2.0.0
    • camel-jms
    • None

    Description

      If an end user sends a JMS property as

      MY_KEY
      

      Then it should be preserved when Camel route it, so the receiver side using Camel as well will see it as: MY_KEY and not MY.KEY.

      The code should be:

              String answer = key.replace(".", "_DOT_");
      
              answer = answer.replace("_DOT_", ".");
      

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: