Merge pull request #168 from jboner/1175-docs-remoting-he
Initial stab at remoting documentation. See #1175
This commit is contained in:
commit
e491b3bdf9
8 changed files with 261 additions and 6 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/serviceA/retrieval");
|
||||
//#remoteNodeActor
|
||||
|
||||
public void onReceive(Object message) throws Exception {
|
||||
// Do something
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue