Created
March 28, 2013 00:06
-
-
Save richdougherty/5259338 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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