Hi Vijay, When you say that the actor doesn’t get resolved do you get back an ActorNotFound or does it time out?
Are you sure that the “Endpoint” actor have been deployed properly on node1 before hte test runs on node2? You need to ensure that the systems and actors are set up properly before you try to communicate between them. B/ On 4 February 2014 at 17:26:21, Vijaykumar Gundavarapu ([email protected]) wrote: Adding more details in case if I am not clear. Actor 1 on JVM 1: TestActorRef(Props(classOf[RenderRouterMock1]),"Endpoint")(ActorSystem(cfgNd1.getString("application.name"), cfgNd1)) Actor 2 on JVM 2 TestActorRef(Props(classOf[RenderRouter],cfgNd2),"Endpoint")(ActorSystem(cfgNd2.getString("application.name"),cfgNd2)) Actor 2 then looks for remote Actor (Actor 1) using path -actorSelection(akka.tcp://[email protected]:2553/user/Endpoint) as described above. On Tuesday, February 4, 2014 10:04:08 AM UTC-5, Vijaykumar Gundavarapu wrote: Hi All, Below are the lines of code in which one actor tries to connect to the other remote actor. actorSelection(path) gets resolved at times and at other times it doesnt get resolved, eventhough I run the same testCase again and again. I was reading about akka quarantines a remote actor when a particular scenario occurs. Do you think that this is one such scenario? sys.actorSelection(path).resolveOne((4 seconds).onComplete { case Success(actorRef) => ........ case Failure(rsn) => ......... Regards, Vijay -- >>>>>>>>>> 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. -- Björn Antonsson Typesafe – Reactive Apps on the JVM twitter: @bantonsson -- >>>>>>>>>> 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.
