Fixed Docs Gitbook
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/a46b0db6 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/a46b0db6 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/a46b0db6 Branch: refs/heads/master Commit: a46b0db626ef3b9a7048c010a979e0cf272c4e47 Parents: 5be0992 Author: Andrea Cosentino <anco...@gmail.com> Authored: Wed Oct 26 13:43:15 2016 +0200 Committer: Andrea Cosentino <anco...@gmail.com> Committed: Wed Oct 26 13:43:15 2016 +0200 ---------------------------------------------------------------------- .../src/main/docs/dead-letter-channel.adoc | 6 ++--- .../main/docs/publish-subscribe-channel.adoc | 26 ++++++++++++++++++++ 2 files changed, 29 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/a46b0db6/camel-core/src/main/docs/dead-letter-channel.adoc ---------------------------------------------------------------------- diff --git a/camel-core/src/main/docs/dead-letter-channel.adoc b/camel-core/src/main/docs/dead-letter-channel.adoc index 286a72c..dc11f9c 100644 --- a/camel-core/src/main/docs/dead-letter-channel.adoc +++ b/camel-core/src/main/docs/dead-letter-channel.adoc @@ -420,7 +420,7 @@ The `Exchange.FAILURE_ROUTE_ID` have the constant value This allows for example you to fetch this information in your dead letter queue and use that for error reporting. -[[DeadLetterChannel-Controlifredeliveryisallowedduringstopping/shutdown]] +[[DeadLetterChannel-Controlifredeliveryisallowedduringstoppingshutdown]] Control if redelivery is allowed during stopping/shutdown ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -458,7 +458,7 @@ You can also configure the http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/processor/RedeliveryPolicy.html[RedeliveryPolicy] as this example shows -[[DeadLetterChannel-HowcanImodifytheExchangebeforeredelivery?]] +[[DeadLetterChannel-HowcanImodifytheExchangebeforeredelivery]] How can I modify the Exchange before redelivery? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -479,7 +479,7 @@ redelivery. And this is the processor `MyRedeliveryProcessor` where we alter the message. -[[DeadLetterChannel-HowcanIlogwhatcausedtheDeadLetterChanneltobeinvoked?]] +[[DeadLetterChannel-HowcanIlogwhatcausedtheDeadLetterChanneltobeinvoked]] How can I log what caused the Dead Letter Channel to be invoked? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ http://git-wip-us.apache.org/repos/asf/camel/blob/a46b0db6/camel-core/src/main/docs/publish-subscribe-channel.adoc ---------------------------------------------------------------------- diff --git a/camel-core/src/main/docs/publish-subscribe-channel.adoc b/camel-core/src/main/docs/publish-subscribe-channel.adoc index c6ace55..5665251 100644 --- a/camel-core/src/main/docs/publish-subscribe-channel.adoc +++ b/camel-core/src/main/docs/publish-subscribe-channel.adoc @@ -29,8 +29,34 @@ link:dsl.html[DSL] or link:xml-configuration.html[Xml Configuration]. *Using the link:fluent-builders.html[Fluent Builders]* +[source,java] +--------------------------------------------------- +RouteBuilder builder = new RouteBuilder() { + public void configure() { + errorHandler(deadLetterChannel("mock:error")); + + from("direct:a") + .multicast().to("direct:b", "direct:c", "direct:d"); + } +}; +--------------------------------------------------- + *Using the link:spring-xml-extensions.html[Spring XML Extensions]* +[source,xml] +--------------------------------------------------- +<camelContext errorHandlerRef="errorHandler" xmlns="http://camel.apache.org/schema/spring"> + <route> + <from uri="direct:a"/> + <multicast> + <to uri="direct:b"/> + <to uri="direct:c"/> + <to uri="direct:d"/> + </multicast> + </route> +</camelContext> +--------------------------------------------------- + [[PublishSubscribeChannel-UsingThisPattern]] Using This Pattern ++++++++++++++++++