Fixed all comments related to remoting. Added new serialization section in documentation. See #1175. See #1536.

This commit is contained in:
Henrik Engstrom 2011-12-15 21:16:19 +01:00
parent 94017d8b7a
commit 9b39b9411f
8 changed files with 157 additions and 3 deletions

View file

@ -0,0 +1,18 @@
package akka.docs.remoting;
import akka.actor.ActorRef;
import akka.actor.UntypedActor;
public class RemoteActorExample extends UntypedActor {
//#localNodeActor
ActorRef a1 = getContext().actorFor("/serviceA/retrieval");
//#localNodeActor
//#remoteNodeActor
ActorRef a2 = getContext().actorFor("akka://app@10.0.0.1:2552/user/theActor");
//#remoteNodeActor
public void onReceive(Object message) throws Exception {
// Do something
}
}