Skip to content

Instantly share code, notes, and snippets.

@HDBandit
Created July 17, 2016 16:30
Show Gist options
  • Save HDBandit/7191fcd0f6ca2ed454baf447d04bbc91 to your computer and use it in GitHub Desktop.
Save HDBandit/7191fcd0f6ca2ed454baf447d04bbc91 to your computer and use it in GitHub Desktop.
object ApplicationMain extends App {
val system = ActorSystem("MyActorSystem")
val pongActor = system.actorOf(Pong.props, "pongActor")
pongActor ! PongMessage("Initial message")
// waiting for JMX "end" message to terminate
system.awaitTermination()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment