Hello.
I have spent quite some time on this but do not understand the reason on
why it is not working remotely when it works locally.
This is the actor which is running on aws:
object HelloWorld extends Bootable {
val system = ActorSystem("Node1-J", ConfigFactory.parseString("""
akka{
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
netty.tcp {
hostname = ""
port = 30004
}
}
}
"""))
def main(args: Array[String]) {
val arbiter = system.actorOf(Props[Arbiter], "arbiter")
}
def startup() {
}
def shutdown() {
system.shutdown()
}
}
And then a simple actor on my computer:
val system = ActorSystem("Node2-J", ConfigFactory.parseString("""
akka{
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
netty.tcp {
hostname = ""
port = 30010
}
}
}
"""))
val _arbiter =
system.actorSelection("akka.tcp://[email protected]:30002/user/arbiter").resolveOne()(Timeout(10000))
//line-a
As soon as line-a is executed, I get the below error on my aws console:
[ERROR] [01/15/2014 13:18:36.808]
[Node1-J-akka.actor.default-dispatcher-2]
[akka://Node1-J/system/endpointManager/reliableEndpointWriter-akka.tcp%3A%2F%2FNode2-J%40127.0.1.1%3A30010-0/endpointWriter]
dropping message [class akka.actor.SelectChildName] for non-local recipient
[Actor[akka.tcp://[email protected]:30002/]] arriving at
[akka.tcp://[email protected]:30002] inbound addresses are
[akka.tcp://[email protected]:30002]
What is going wring here? I am using akka-2.2.3
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.