diff --git a/akka-camel/src/main/scala/component/ActorComponent.scala b/akka-camel/src/main/scala/component/ActorComponent.scala index 74858f2b9b..3fd4ebf055 100644 --- a/akka-camel/src/main/scala/component/ActorComponent.scala +++ b/akka-camel/src/main/scala/component/ActorComponent.scala @@ -59,10 +59,15 @@ class ActorComponent extends DefaultComponent { * Camel endpoint for sending messages to and receiving replies from (untyped) actors. Actors * are referenced using actor endpoint URIs of the following format: * actor:, - * actor:id: and - * actor:uuid:, - * where actor-id refers to ActorRef.id and actor-uuid - * refers to the String-representation od ActorRef.uuid. + * actor:id:[] and + * actor:uuid:[], + * where refers to ActorRef.id and + * refers to the String-representation od ActorRef.uuid. In URIs that contain + * id: or uuid:, an actor identifier (id or uuid) is optional. In this + * case, the in-message of an exchange produced to this endpoint must contain a message header + * with name CamelActorIdentifier and a value that is the target actor's identifier. + * If the URI contains an actor identifier, a message with a CamelActorIdentifier + * header overrides the identifier in the endpoint URI. * * @see se.scalablesolutions.akka.camel.component.ActorComponent * @see se.scalablesolutions.akka.camel.component.ActorProducer @@ -99,7 +104,8 @@ class ActorEndpoint(uri: String, } /** - * Sends the in-message of an exchange to an (untyped) actor. + * Sends the in-message of an exchange to an (untyped) actor, identified by an + * actor endpoint URI or by a CamelActorIdentifier message header. *