Minor fixes to the sample. See #1560

This commit is contained in:
Henrik Engstrom 2011-12-22 16:15:59 +01:00
parent d899dd65b2
commit 7ade7e8179
3 changed files with 4 additions and 4 deletions

View file

@ -11,8 +11,8 @@ The Sample Explained
In order to showcase the remote capabilities of Akka 2.0 we thought a remote calculator could do the trick.
There are three actor systems (AS) used in the sample:
* CalculatorApplication : the AS performing the number crunching
There are three actor systems used in the sample:
* CalculatorApplication : the actor system performing the number crunching
* LookupApplication : illustrates how to look up an actor on a remote node and and how communicate with that actor
* CreationApplication : illustrates how to create an actor on a remote node and how to communicate with that actor

View file

@ -14,7 +14,7 @@ class CreationApplication extends Bootable {
val remoteActor = system.actorOf(Props[AdvancedCalculatorActor], "advancedCalculator")
def doSomething(op: MathOp) = {
localActor ! Tuple2(remoteActor, op)
localActor ! (remoteActor, op)
}
def startup() {

View file

@ -14,7 +14,7 @@ class LookupApplication extends Bootable {
val remoteActor = system.actorFor("akka://CalculatorApplication@127.0.0.1:2552/user/simpleCalculator")
def doSomething(op: MathOp) = {
actor ! Tuple2(remoteActor, op)
actor ! (remoteActor, op)
}
def startup() {