From 92e87cc681ab9112d44c6bd991f47c729d1b9466 Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Sat, 4 Jul 2009 17:49:10 +0000 Subject: [PATCH] INT-676 added header-enricher example --- spring-integration-reference/src/transformer.xml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spring-integration-reference/src/transformer.xml b/spring-integration-reference/src/transformer.xml index 4210cd3ec0..1ce7943fe7 100644 --- a/spring-integration-reference/src/transformer.xml +++ b/spring-integration-reference/src/transformer.xml @@ -65,12 +65,6 @@ be sent (effectively the same behavior as a Message Filter returning false). Otherwise, the return value will be sent as the payload of an outbound reply Message. - - - Using both the "ref" attribute and an inner handler definition in the same <transformer> - configuration is not allowed, as it creates an ambiguous condition and will result in an Exception being thrown. - - There are a also a few Transformer implementations available out of the box. Because, it is fairly common to use the toString() representation of an Object, Spring Integration provides an @@ -97,6 +91,14 @@ ]]> + + If you only need to add headers to a Message, and they are not dynamically determined by Message content, + then referencing a custom implementation may be overkill. For that reason, Spring Integration provides the + 'header-enricher' element. +
+
+ ]]> +