From 3ed8c5db69be0be19ef6dba9103f28ae4414bab4 Mon Sep 17 00:00:00 2001 From: Vojin Jovanovic Date: Wed, 13 Feb 2013 11:30:54 +0100 Subject: [PATCH 1/2] Fixing issues #2 and #3 in Actor Migration. --- overviews/core/_posts/2012-11-08-actors-migration-guide.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/overviews/core/_posts/2012-11-08-actors-migration-guide.md b/overviews/core/_posts/2012-11-08-actors-migration-guide.md index 5236acbafe..e0672f0011 100644 --- a/overviews/core/_posts/2012-11-08-actors-migration-guide.md +++ b/overviews/core/_posts/2012-11-08-actors-migration-guide.md @@ -518,14 +518,15 @@ In Akka, watching the already dead actor will result in sending the `Terminated` ### Step 5 - Moving to the Akka Back-end At this point user code is ready to operate on Akka actors. Now we can switch the actors library from Scala to -Akka actors. In order to do this configure the build to exclude the `scala-actors.jar` and the `scala-actors-migration.jar` - and add the *akka-actor.jar*. The AMK is built to work only with Akka actors version 2.1 which are included in the [Scala distribution](http://www.scala-lang.org/downloads) +Akka actors. To do this configure the build to exclude the `scala-actors.jar` and the `scala-actors-migration.jar`, + and to include *akka-actor.jar* and *typesafe-config.jar*. The AMK is built to work only with Akka actors version 2.1 which are included in the [Scala distribution](http://www.scala-lang.org/downloads) and can be configured by these [instructions](http://doc.akka.io/docs/akka/2.1.0/intro/getting-started.html#Using_a_build_tool). After this change the compilation will fail due to different package names and slight differences in the API. We will have to change each imported actor from scala to Akka. Following is the non-exhaustive list of package names that need to be changed: scala.actors._ -> akka.actor._ + scala.actors.migration.ActWithStash -> akka.actor.ActorDSL._ scala.actors.migration.pattern.ask -> akka.pattern.ask scala.actors.migration.Timeout -> akka.util.Timeout From f7ab77db4963a0a362082344d435207bd519601d Mon Sep 17 00:00:00 2001 From: Vojin Jovanovic Date: Wed, 13 Feb 2013 11:40:08 +0100 Subject: [PATCH 2/2] Updating when actors are deprecated. --- overviews/core/_posts/2012-11-08-actors-migration-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overviews/core/_posts/2012-11-08-actors-migration-guide.md b/overviews/core/_posts/2012-11-08-actors-migration-guide.md index e0672f0011..8326345aeb 100644 --- a/overviews/core/_posts/2012-11-08-actors-migration-guide.md +++ b/overviews/core/_posts/2012-11-08-actors-migration-guide.md @@ -9,7 +9,7 @@ label-text: New in 2.10 ## Introduction -Starting with Scala 2.10.1, the Scala +Starting with Scala 2.11.0, the Scala [Actors](http://docs.scala-lang.org/overviews/core/actors.html) library is deprecated. Already in Scala 2.10.0 the default actor library is [Akka](http://akka.io).