You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/08/03 12:43:35 UTC

[jira] Created: (CAMEL-1871) camel-jms - DefaultJmsKeyFormatStrategy should replace . with _DOT_ to avoid conflicting with end user using _

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

                 Key: CAMEL-1871
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1871
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-jms
    Affects Versions: 2.0-M3, 1.6.1
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
            Priority: Minor
             Fix For: 2.0.0


If an end user sends a JMS property as
{code}
MY_KEY
{code}

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:
{code}
        String answer = key.replace(".", "_DOT_");

        answer = answer.replace("_DOT_", ".");
{code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-1871) camel-jms - DefaultJmsKeyFormatStrategy should replace . with _DOT_ to avoid conflicting with end user using _

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1871?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-1871.
--------------------------------

    Resolution: Fixed

trunk: 800307.

> camel-jms - DefaultJmsKeyFormatStrategy should replace . with _DOT_ to avoid conflicting with end user using _
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-1871
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1871
>             Project: Apache Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 1.6.1, 2.0-M3
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> If an end user sends a JMS property as
> {code}
> MY_KEY
> {code}
> 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:
> {code}
>         String answer = key.replace(".", "_DOT_");
>         answer = answer.replace("_DOT_", ".");
> {code}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.