Skip to content

Commit fd06e1a

Browse files
committed
Merge pull request #183 from vjovanov/master
Fixing issues #2 and #3 in the Actors Migration.
2 parents c54518a + f7ab77d commit fd06e1a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

overviews/core/_posts/2012-11-08-actors-migration-guide.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ label-text: New in 2.10
99

1010
## Introduction
1111

12-
Starting with Scala 2.10.1, the Scala
12+
Starting with Scala 2.11.0, the Scala
1313
[Actors](http://docs.scala-lang.org/overviews/core/actors.html)
1414
library is deprecated. Already in Scala 2.10.0 the default actor library is
1515
[Akka](http://akka.io).
@@ -518,14 +518,15 @@ In Akka, watching the already dead actor will result in sending the `Terminated`
518518
### Step 5 - Moving to the Akka Back-end
519519

520520
At this point user code is ready to operate on Akka actors. Now we can switch the actors library from Scala to
521-
Akka actors. In order to do this configure the build to exclude the `scala-actors.jar` and the `scala-actors-migration.jar`
522-
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)
521+
Akka actors. To do this configure the build to exclude the `scala-actors.jar` and the `scala-actors-migration.jar`,
522+
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)
523523
and can be configured by these [instructions](http://doc.akka.io/docs/akka/2.1.0/intro/getting-started.html#Using_a_build_tool).
524524

525525
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
526526
from scala to Akka. Following is the non-exhaustive list of package names that need to be changed:
527527

528528
scala.actors._ -> akka.actor._
529+
scala.actors.migration.ActWithStash -> akka.actor.ActorDSL._
529530
scala.actors.migration.pattern.ask -> akka.pattern.ask
530531
scala.actors.migration.Timeout -> akka.util.Timeout
531532

0 commit comments

Comments
 (0)