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 The important part here is the code (which I mostly pastes with aka homepage): on the server server and on customer: 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 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: Is this help? 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)
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])}
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 ")})}}
ping . That's why I did not get upset from time to time.
Comments
Post a Comment