Skip to content

Instantly share code, notes, and snippets.

@richdougherty
Created March 28, 2013 00:06
Show Gist options
  • Save richdougherty/5259338 to your computer and use it in GitHub Desktop.
Save richdougherty/5259338 to your computer and use it in GitHub Desktop.
import play.api._
import com.typesafe.config.ConfigFactory
import akka.actor.ActorSystem
object Global extends GlobalSettings {
override def onStart(app: Application) {
val config = ConfigFactory.parseString("""
akka {
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
enabled-transports = ["akka.remote.netty.tcp"]
netty.tcp {
hostname = "127.0.0.1"
port = 2552
}
}
}
""").withFallback(ConfigFactory.load())
val actorSystem = ActorSystem("test-system", config)
actorSystem.shutdown()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment