I have a camel route that needs to do request/reply to a JMS (non-camel) Service. My issue is I want to set some JMS properties in camel so my JMS Server can read them. Is there a way to do this?
So in camel I tried: ProducerTemplate producerTemplate = exchange.getContext().createProducerTemplate(); //... load a hashMap of properties. HashMap<String, Object> headerMap = new HashMap<String, Object>(); headerMap.put("PropertyName", "Value"); // tried producerTemplate.sendBodyAndHeaders(getJmsRequestQueueAddress(), inString, headerMap); // and producerTemplate.sendBodyAndProperty(getJmsRequestQueueAddress(), inString, "PropertyName", headerMap.toString()); On the JMS Server Side (onMessage): TextMessage txtMsg = (TextMessage)message; txtMsg.getStringProperty("PropertyName"); The /inString/ is in the JMS Text Message body . but the /txtMsg.getStringProperty("PropertyName") == null/; Any Ideas? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-Properties-tp5787616.html Sent from the Camel - Users mailing list archive at Nabble.com.