From d49678fb9c55ca294c0aefa62fe93e07ad0becad Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Thu, 4 Jul 2013 17:29:03 +0200 Subject: [PATCH] DOC: how to conf dispatcher of camel producer, see #3048 --- akka-docs/rst/java/camel.rst | 13 +++++++++++++ akka-docs/rst/scala/camel.rst | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/akka-docs/rst/java/camel.rst b/akka-docs/rst/java/camel.rst index a9d357e685..28fe70e6c2 100644 --- a/akka-docs/rst/java/camel.rst +++ b/akka-docs/rst/java/camel.rst @@ -315,6 +315,19 @@ allocation of a thread for the duration of an in-out message exchange. There's also a :ref:`camel-async-example-java` that implements both, an asynchronous consumer and an asynchronous producer, with the jetty component. +If the used Camel component is blocking it might be necessary to use a separate +:ref:`dispatcher ` for the producer. The Camel processor is +invoked by a child actor of the producer and the dispatcher can be defined in +the deployment section of the configuration. For example, if your producer actor +has path ``/user/integration/output`` the dispatcher of the child actor can be +defined with:: + + akka.actor.deployment { + /integration/output/* { + dispatcher = my-dispatcher + } + } + .. _Camel components: http://camel.apache.org/components.html .. _subset of components: http://camel.apache.org/asynchronous-routing-engine.html .. _Jetty component: http://camel.apache.org/jetty.html diff --git a/akka-docs/rst/scala/camel.rst b/akka-docs/rst/scala/camel.rst index 1861948fe8..5bce74953a 100644 --- a/akka-docs/rst/scala/camel.rst +++ b/akka-docs/rst/scala/camel.rst @@ -311,6 +311,19 @@ allocation of a thread for the duration of an in-out message exchange. There's also a :ref:`camel-async-example` that implements both, an asynchronous consumer and an asynchronous producer, with the jetty component. +If the used Camel component is blocking it might be necessary to use a separate +:ref:`dispatcher ` for the producer. The Camel processor is +invoked by a child actor of the producer and the dispatcher can be defined in +the deployment section of the configuration. For example, if your producer actor +has path ``/user/integration/output`` the dispatcher of the child actor can be +defined with:: + + akka.actor.deployment { + /integration/output/* { + dispatcher = my-dispatcher + } + } + .. _Camel components: http://camel.apache.org/components.html .. _subset of components: http://camel.apache.org/asynchronous-routing-engine.html .. _Jetty component: http://camel.apache.org/jetty.html