From 215c77672c6bb3d197af7c21d361096a886557a5 Mon Sep 17 00:00:00 2001 From: Henrik Engstrom Date: Thu, 15 Dec 2011 23:47:12 +0100 Subject: [PATCH] Fixed even more comments on the remoting. See #1175 --- .../code/akka/docs/remoting/RemoteActorExample.java | 2 +- akka-docs/java/remoting.rst | 10 +++++++--- akka-docs/scala/remoting.rst | 10 +++++++--- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/akka-docs/java/code/akka/docs/remoting/RemoteActorExample.java b/akka-docs/java/code/akka/docs/remoting/RemoteActorExample.java index e281a6d522..8dd48aee4c 100644 --- a/akka-docs/java/code/akka/docs/remoting/RemoteActorExample.java +++ b/akka-docs/java/code/akka/docs/remoting/RemoteActorExample.java @@ -9,7 +9,7 @@ public class RemoteActorExample extends UntypedActor { //#localNodeActor //#remoteNodeActor - ActorRef a2 = getContext().actorFor("akka://app@10.0.0.1:2552/user/theActor"); + ActorRef a2 = getContext().actorFor("akka://app@10.0.0.1:2552/user/serviceA/retrieval"); //#remoteNodeActor public void onReceive(Object message) throws Exception { diff --git a/akka-docs/java/remoting.rst b/akka-docs/java/remoting.rst index 8f91679d1b..15eacc3f4c 100644 --- a/akka-docs/java/remoting.rst +++ b/akka-docs/java/remoting.rst @@ -61,11 +61,15 @@ The "app" in this case refers to the name of the ``ActorSystem``:: Logical path lookup is supported on the node you are on, i.e. to use the actor created above you would do the following: - .. includecode:: code/akka/docs/remoting/RemoteActorExample.java#localNodeActor +.. includecode:: code/akka/docs/remoting/RemoteActorExample.java#localNodeActor -To use an actor on a remote node: +This will obtain an ``ActorRef`` on a remote node: - .. includecode:: code/akka/docs/remoting/RemoteActorExample.java#remoteNodeActor +.. includecode:: code/akka/docs/remoting/RemoteActorExample.java#remoteNodeActor + +As you can see from the example above the following pattern is used to find an ``ActorRef`` on a remote node:: + + akka://@:/ Serialization ^^^^^^^^^^^^^ diff --git a/akka-docs/scala/remoting.rst b/akka-docs/scala/remoting.rst index b20d959c46..78f7a598ad 100644 --- a/akka-docs/scala/remoting.rst +++ b/akka-docs/scala/remoting.rst @@ -65,11 +65,15 @@ The "app" in this case refers to the name of the ``ActorSystem``:: Logical path lookup is supported on the node you are on, i.e. to use the actor created above you would do the following:: - val actor = actorFor("/serviceA/retrieval") + val actor = context.actorFor("/serviceA/retrieval") -To use an actor on a remote node:: +This will obtain an ``ActorRef`` on a remote node:: - val actor = actorFor("akka://app@10.0.0.1:2552/user/theActor") + val actor = context.actorFor("akka://app@10.0.0.1:2552/user/serviceA/retrieval") + +As you can see from the example above the following pattern is used to find an ``ActorRef`` on a remote node:: + + akka://@:/ Serialization ^^^^^^^^^^^^^