You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Magnus Persson (JIRA)" <ji...@apache.org> on 2019/04/10 12:44:00 UTC

[jira] [Created] (AMQ-7180) properties are translated so DOT:s can't be used as the key

Magnus Persson created AMQ-7180:
-----------------------------------

             Summary: properties are translated so DOT:s can't be used as the key
                 Key: AMQ-7180
                 URL: https://issues.apache.org/jira/browse/AMQ-7180
             Project: ActiveMQ
          Issue Type: Bug
          Components: activemq-camel
    Affects Versions: 5.15.9
         Environment: Windows 10, Java11
            Reporter: Magnus Persson


I use activemq with camel. In order to use the retain-feature i do this in my message exchange:

ex.getIn().setHeader("ActiveMQ.Retain", "true");

This property is read in  RetainedMessageSubscriptionRecoveryPolicy. Unfortunately the property-key is translated to "ActiveMQ.DOT.Retain" (so the retain-feature can't be used). A workaround is to do this on the endpoint: mqttEp.setJmsKeyFormatStrategy(new PassThroughJmsKeyFormatStrategy());



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)