I'm trying to setup a remote actor to listen on port 2553, like so:

import akka.actor.Actor._
import akka.actor.ActorSystem
import com.typesafe.config.ConfigFactory

/**
 * Created by prasan.samtani on 4/22/2014.
 */
object RemoteSlave {
  val conf = ConfigFactory.load("remote-slave")
  Console.println("port =" + conf.getInt("akka.remote.netty.tcp.port"))
  val system = ActorSystem("monitorcoordinator", conf)

  def main(args: Array[String]) {
  }
}


The config file is setup like so:

akka {
  actor {
    provider = "akka.remote.RemoteActorRefProvider"

  }
  remote {
    enabled-transports = ["akka.remote.netty.tcp"]
    netty.tcp {
      hostname = "127.0.0.1"
      port = 2553
    }
 }
}


 
However, akka continues to bind to port 2552 (the default?) instead of the 
specified port.

Program output:

port = 2553
[INFO] [04/22/2014 15:12:04.802] [main] 
[NettyRemoteTransport(akka://[email protected]:2552)] 
RemoteServerStarted@akka://[email protected]:2552


Is there a different config parameter I need to use?

Thanks,
Prasan 

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      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/d/optout.

Reply via email to