Ability to set custom properties for message going to JMS endpoint
Ability to set custom properties on JMS Message
I have a proxy for going from a http soap call to JMS endpoint. I believe I should be able to do something like this within an inSequence for the target
<property name="name" value="thevalue" />
In JMSSender, when createJMSMessage is called to convert message from the soap call and prepare the actual JMS message, there is a call to a method named setTransportHeaders. This in turn picks up a headerMap from the message context property named 'TRANSPORT_HEADERS'. Am I wrong in thinking that I'd need a property defined named TRANSPORT_HEADERS, that contains a list of key/values?
-Lucas
- Login or register to post comments
- Printer friendly version
- 134 reads











I figured it out
I forgot to set the scope to transport
<syn:inSequence>
<syn:property action="set" name="customheader" value="customvalue" scope="transport" />
</syn:inSequence>
-Lucas
Hi Lucas, Transport headers
Hi Lucas,
Transport headers are kept in a HashMap inside the properties with the name that you have specified, that is "TRANSPORT_HEADERS".
So this should be working.... In the HTTP case this is working and I suppose the JMS case to be the same.
BTW: What is the version on ESB that you are using?
Thanks,
Ruwan Linton
I haven't quite got the
I haven't quite got the second post which tells that the issue is resolved... :-(
Nice to here you got it to work anyway.
Thanks
Ruwan Linton