Akka Actor can't connect to remote server where Scala Actor could -


itemprop = "text">

I have a little problem. I transfered my existing project from Remote Scala actors to remote-point actors to client-server communication.

Everything worked fine while testing on my local machine but once I tried to run the code with the client and the server client on different machines can no longer access the server (I got a Java.nio.channels.NotYetconnectedException is received). I checked the double and tripple IP and port being used, this is the same host data that I used in code with the scala actors (which still work.) So the firewall setting and apparently nothing on the server Replacement is technically available)

The important part here is the code (which I mostly pastes with aka homepage):

on the server server

  Import akka.actor.Actor._info The akka.actor. (Actor, ActorRef, Supervisor) Override def preStart = {// I have also tried to remove remote external servers. Start (host, 1357) // SERVER_SERVICE_NAME is a string in a feature that is both server // and client / SessionActor remote.registerPerSession (SERVER_SERVICE_NAME, actor [sessionctor])}   

and on customer:

  import akka.actor.Actor._ import Sent to Akka.actor. (Actor, ActorRef, Supervisor) override def preStart = {CLIENT_SERVICE_NAME is a string stable actor. Registration (CLIENT_SERVICE_NAME, myself) // I also have "thread sleep 1000" here just in case / / internal server type option [ActorRef] // a private type of host and server port It is actually read from the properties that the file looks like // it does not matter if I checked them InternalServer = some (for the remote factor (SERVER_SERVICE_NAME, host, server port)) // Then I tried "thread sleep 1000 "Here. Project (server = & gt; Paste of {(server !! ping) (_ match {// !!!} is not like where the exception has been thrown! Case Pong => Princeton ("Connect") case _ = & gt; println (" Some things ")})}}   

I am using: Scala 2.8.1 (although I'm not sure whether my client's machines are 2.8 or 2.8.1, Akka 1.0

I know that you can not debug your code from it, but I do not know much for any kind Thanksgiving sign or idea what could be wrong here

PS: Exception is thrown in splitsecond after trying to send ping . That's why I did not get upset from time to time.

Disclaimer: I am aka pak

Remote. Try using a raw IP address instead of a hostname in Start (), if it is not resolved, then you have 2 options:

  1. Make sure that < Li> Upgrade to Current Master (1.1-SNAPSHOT), because I've made a lot of changes to avoid the name resolution.

    Is this help?

Comments