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)

Reply via email to