Skip to content

Instantly share code, notes, and snippets.

@jamie-allen
Created May 7, 2012 22:57
Show Gist options
  • Save jamie-allen/2631227 to your computer and use it in GitHub Desktop.
Save jamie-allen/2631227 to your computer and use it in GitHub Desktop.
name := "Akka ActorSystem Test"
version := "1.0"
scalaVersion := "2.9.1-1"
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/"
libraryDependencies += "com.typesafe.akka" % "akka-actor" % "2.0.1"
*****
package com.jamieallen.akka.actorsystem
import akka.actor.ActorSystem
object ActorSystemTest extends App {
println("Creating first system.")
val system1 = ActorSystem("First")
println("First system type: " + system1.getClass().getName())
println("Creating second system.")
val system2 = ActorSystem("Second")
println("Second system type: " + system2.getClass().getName())
println("Done.")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment