Created
February 6, 2015 02:16
-
-
Save bhameyie/f2ab2d02bb2ec2b68d82 to your computer and use it in GitHub Desktop.
Akka Remoting Pitfall
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
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") | |
} | |
} |
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
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