Hi,

You can add your JMS properties using 
org.apache.cxf.message.Message.PROTOCOL_HEADERS CXF message property. 
The property have to be initialized with Map<String, List<String>>.
CXF will concatenate multi-values in comma separated list (single values will 
be set unchanged) and use map key as JMS property name.

See 
https://github.com/apache/cxf/blob/master/rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSMessageUtils.java
 prepareJMSMessageProperties() for details.

Regards,
Andrei.

> -----Original Message-----
> From: jamo [mailto:[email protected]]
> Sent: Mittwoch, 13. Mai 2015 22:36
> To: [email protected]
> Subject: How to add JMS properties to outbound messages
> 
> I  wrote an interceptor which adds header properties to messages in the
> PREPARE_SEND phase.  This works fine for endpoint-specific properties.
> However, I need to be able to add message-specific properties.  For example, I
> need to be able to create a set of key-value pairs using data from the 
> message.
> How can I go about doing this?
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/How-to-add-
> JMS-properties-to-outbound-messages-tp5757243.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to