Skip to content

Instantly share code, notes, and snippets.

@bhameyie
Created February 6, 2015 02:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhameyie/f2ab2d02bb2ec2b68d82 to your computer and use it in GitHub Desktop.
Save bhameyie/f2ab2d02bb2ec2b68d82 to your computer and use it in GitHub Desktop.
Akka Remoting Pitfall
object Main {
def main(args: Array[String]): Unit = {
val addr= "akka.tcp://47Ronin@servermachine:9551/user/printerDude"
val system = ActorSystem()
val printerDude = system.actorSelection(addr)
printerDude ! PrintIt("still printing")
}
}
object Main {
def main(args: Array[String]): Unit = {
val systemName = "47Ronin"
val system = ActorSystem(systemName)
system.actorOf(Props[PrinterDude],
"printerDude")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment