diff --git a/spring-integration-core/src/main/java/org/springframework/integration/config/EndpointParser.java b/spring-integration-core/src/main/java/org/springframework/integration/config/EndpointParser.java
index 298038c950..236af0e677 100644
--- a/spring-integration-core/src/main/java/org/springframework/integration/config/EndpointParser.java
+++ b/spring-integration-core/src/main/java/org/springframework/integration/config/EndpointParser.java
@@ -25,13 +25,13 @@ import org.springframework.integration.handler.DefaultMessageHandlerAdapter;
import org.springframework.util.StringUtils;
/**
- * Parser for the endpoint element of the integration namespace.
+ * Parser for the handler-endpoint element of the integration namespace.
*
* @author Mark Fisher
*/
public class EndpointParser extends AbstractTargetEndpointParser {
- private static final String DEFAULT_OUTPUT_CHANNEL_ATTRIBUTE = "default-output-channel";
+ private static final String OUTPUT_CHANNEL_ATTRIBUTE = "output-channel";
private static final String DEFAULT_OUTPUT_CHANNEL_PROPERTY = "defaultOutputChannelName";
@@ -58,9 +58,9 @@ public class EndpointParser extends AbstractTargetEndpointParser {
@Override
protected void postProcess(BeanDefinitionBuilder builder, Element element) {
- String defaultOutputChannel = element.getAttribute(DEFAULT_OUTPUT_CHANNEL_ATTRIBUTE);
- if (StringUtils.hasText(defaultOutputChannel)) {
- builder.addPropertyValue(DEFAULT_OUTPUT_CHANNEL_PROPERTY, defaultOutputChannel);
+ String outputChannel = element.getAttribute(OUTPUT_CHANNEL_ATTRIBUTE);
+ if (StringUtils.hasText(outputChannel)) {
+ builder.addPropertyValue(DEFAULT_OUTPUT_CHANNEL_PROPERTY, outputChannel);
}
String returnAddressOverridesAttribute = element.getAttribute(RETURN_ADDRESS_OVERRIDES_ATTRIBUTE);
boolean returnAddressOverrides = "true".equals(returnAddressOverridesAttribute);
diff --git a/spring-integration-core/src/main/java/org/springframework/integration/config/spring-integration-core-1.0.xsd b/spring-integration-core/src/main/java/org/springframework/integration/config/spring-integration-core-1.0.xsd
index b920148758..d86832274c 100644
--- a/spring-integration-core/src/main/java/org/springframework/integration/config/spring-integration-core-1.0.xsd
+++ b/spring-integration-core/src/main/java/org/springframework/integration/config/spring-integration-core-1.0.xsd
@@ -148,9 +148,9 @@
-
+
diff --git a/spring-integration-core/src/test/java/org/springframework/integration/config/endpointWithHandlerChainElement.xml b/spring-integration-core/src/test/java/org/springframework/integration/config/endpointWithHandlerChainElement.xml
index 83029c2031..da9ee1e1fd 100644
--- a/spring-integration-core/src/test/java/org/springframework/integration/config/endpointWithHandlerChainElement.xml
+++ b/spring-integration-core/src/test/java/org/springframework/integration/config/endpointWithHandlerChainElement.xml
@@ -19,7 +19,7 @@
-
+
diff --git a/spring-integration-core/src/test/java/org/springframework/integration/endpoint/returnAddressTests.xml b/spring-integration-core/src/test/java/org/springframework/integration/endpoint/returnAddressTests.xml
index d2d32e9161..26308dde02 100644
--- a/spring-integration-core/src/test/java/org/springframework/integration/endpoint/returnAddressTests.xml
+++ b/spring-integration-core/src/test/java/org/springframework/integration/endpoint/returnAddressTests.xml
@@ -19,15 +19,15 @@
+ output-channel="channel2" return-address-overrides="true"/>
-
-
+
+
-
+
diff --git a/spring-integration-reference/src/configuration.xml b/spring-integration-reference/src/configuration.xml
index ee092663f9..8e27bf2307 100644
--- a/spring-integration-reference/src/configuration.xml
+++ b/spring-integration-reference/src/configuration.xml
@@ -126,13 +126,13 @@
To create a Message Endpoint instance, use the 'handler-endpoint' element with the 'input-channel' and 'handler'
attributes:
- <endpoint input-channel="exampleChannel" handler="exampleHandler"/>
+ <handler-endpoint input-channel="exampleChannel" handler="exampleHandler"/>
The configuration above assumes that "exampleHandler" is an actual implementation of the
MessageHandler interface as described in .
To delegate to an arbitrary method of any object, simply add the "method" attribute.
- <endpoint input-channel="exampleChannel" handler="somePojo" method="someMethod"/>
+ <handler-endpoint input-channel="exampleChannel" handler="somePojo" method="someMethod"/>
In either case (MessageHandler or arbitrary object/method), when the handling
@@ -144,11 +144,11 @@
lookup in the ChannelRegistry. If the message header does not contain a
'returnAddress' property at all, then it will fallback to its own 'defaultOutputChannelName' property. If
neither is available, then a MessageHandlingException will be thrown. To configure the
- default output channel when using the XML namespace, provide the 'default-output-channel' attribute:
- <endpoint input-channel="exampleChannel"
+ output channel when using the XML namespace, provide the 'output-channel' attribute:
+ <handler-endpoint input-channel="exampleChannel"
handler="somePojo"
method="someMethod"
- default-output-channel="replyChannel"/>
+ output-channel="replyChannel"/>
Endpoints also support MessageSelectors as described in
diff --git a/spring-integration-samples/src/main/java/org/springframework/integration/samples/filecopy/fileCopyDemo.xml b/spring-integration-samples/src/main/java/org/springframework/integration/samples/filecopy/fileCopyDemo.xml
index 6d0c840952..ecfeb2c9d2 100644
--- a/spring-integration-samples/src/main/java/org/springframework/integration/samples/filecopy/fileCopyDemo.xml
+++ b/spring-integration-samples/src/main/java/org/springframework/integration/samples/filecopy/fileCopyDemo.xml
@@ -16,10 +16,10 @@
-
+
-
diff --git a/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/helloWorldDemo.xml b/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/helloWorldDemo.xml
index 5a2bd36840..7cedc46541 100644
--- a/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/helloWorldDemo.xml
+++ b/spring-integration-samples/src/main/java/org/springframework/integration/samples/helloworld/helloWorldDemo.xml
@@ -10,7 +10,7 @@