pekko/akka-samples/akka-sample-remote
2011-04-27 13:49:50 +02:00
..
src/main/scala Removing the Client Managed Remote Actor sample from the docs and akka-sample-remote, fixing #804 2011-04-27 13:49:50 +02:00
README Removing the Client Managed Remote Actor sample from the docs and akka-sample-remote, fixing #804 2011-04-27 13:49:50 +02:00

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---------------------------------------------------------
== Akka Remote Sample Application ==
---------------------------------------------------------
= Server Managed Remote Actors Sample = 

To run the sample: 

1. Fire up two shells. For each of them:
  - Step down into to the root of the Akka distribution.
  - Set 'export AKKA_HOME=<root of distribution>.
  - Run 'sbt'
  - Run 'update' followed by 'compile' if you have not done that before.
  - Run 'project akka-sample-remote'
  - Run 'console' to start up a REPL (interpreter).
2. In the first REPL you get execute: 
  - scala> import sample.remote._
  - scala> ServerManagedRemoteActorServer.run
    This starts up the RemoteNode and registers the remote actor
3. In the second REPL you get execute: 
    - scala> import sample.remote._
    - scala> ServerManagedRemoteActorClient.run
4. See the actor conversation.
5. Run it again to see full speed after first initialization.

Now you could test client reconnect by killing the console running the ServerManagedRemoteActorClient and start it up again. See the client reconnect take place in the REPL shell.

Thats it. Have fun.