diff --git a/docs/src/reference/docbook/jms.xml b/docs/src/reference/docbook/jms.xml index 99fd6e42f7..0d21a93002 100644 --- a/docs/src/reference/docbook/jms.xml +++ b/docs/src/reference/docbook/jms.xml @@ -201,6 +201,24 @@ Message to be subsequently sent to the 'reply-channel' as shown in the example configuration above. + +
+ Mapping Message Headers to/from JMS Message + + + JMS Message can contain meta-information such as JMS API headers as well as simple properties. + You can map those to/from Spring Integration Message Headers using JmsHeaderMapper. + The JMS API headers are passed to the appropriate setter methods (e.g. setJMSReplyTo) whereas other headers will + be copied to the general properties of the JMS Message. + + JMS Outbound Gateway is bootstrapped with the default implementation of JmsHeaderMapper which will map + standard JMS API Headers as well as primitive/String Message Headers. Custom header mapper could also be + provided via header-mapper attribute of inbound and outbound gateways. + + +
+ +
Message Conversion, Marshalling and Unmarshalling diff --git a/spring-integration-jms/src/main/resources/org/springframework/integration/jms/config/spring-integration-jms-2.0.xsd b/spring-integration-jms/src/main/resources/org/springframework/integration/jms/config/spring-integration-jms-2.0.xsd index 7fbcb32bca..519217b928 100644 --- a/spring-integration-jms/src/main/resources/org/springframework/integration/jms/config/spring-integration-jms-2.0.xsd +++ b/spring-integration-jms/src/main/resources/org/springframework/integration/jms/config/spring-integration-jms-2.0.xsd @@ -557,6 +557,9 @@ + + Allows to specify custom implementation of JmsHeaderMapper to map Message Headers to JMS Message. + @@ -740,6 +743,9 @@ + + Allows to specify custom implementation of JmsHeaderMapper to map Message Headers to JMS Message. +