diff --git a/akka-samples/akka-sample-remote/README b/akka-samples/akka-sample-remote/README index d82565dbe6..98a46bd343 100644 --- a/akka-samples/akka-sample-remote/README +++ b/akka-samples/akka-sample-remote/README @@ -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 diff --git a/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/CreationApplication.scala b/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/CreationApplication.scala index e97f4f9dec..dac7cbe757 100644 --- a/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/CreationApplication.scala +++ b/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/CreationApplication.scala @@ -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() { diff --git a/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/LookupApplication.scala b/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/LookupApplication.scala index e4b6ccc825..2439a90f7d 100644 --- a/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/LookupApplication.scala +++ b/akka-samples/akka-sample-remote/src/main/scala/sample/remote/calculator/LookupApplication.scala @@ -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() {