Fixed all comments related to remoting. Added new serialization section in documentation. See #1175. See #1536.
This commit is contained in:
parent
94017d8b7a
commit
9b39b9411f
8 changed files with 157 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue