diff --git a/akka-camel/src/main/scala/Producer.scala b/akka-camel/src/main/scala/Producer.scala index aa37e11978..7851251bc9 100644 --- a/akka-camel/src/main/scala/Producer.scala +++ b/akka-camel/src/main/scala/Producer.scala @@ -41,6 +41,10 @@ trait Producer { this: Actor => */ def oneway: Boolean = false + /** + * Optional target to forward results to. Only relevant for in-out message exchanges + * (i.e. oneway == false). + */ def forwardResultTo: Option[ActorRef] = None /** @@ -79,7 +83,7 @@ trait Producer { this: Actor => /** * Creates an in-out message exchange from msg and sends it to the endpoint * specified by endpointUri. The out-message returned by the endpoint is - * returned to the original sender. + * returned to the original sender or forwarded to forwardResultTo if defined. * * @param msg message to produce */