Hello,

I'm having some trouble getting 2 Akka nodes to communicate, so I'm trying 
to see my URI info.

My receiver node's config:

akka {
log-dead-letters-during-shutdown = off
loglevel = "ERROR"
stdout-loglevel = "ERROR"
loggers = ["akka.event.slf4j.Slf4jLogger"]
actor {
provider = "akka.cluster.ClusterActorRefProvider"
}
remote {
enabled-transports = ["akka.remote.netty.tcp"]
netty.tcp { 
port = 9012
}
}
cluster {
seed-nodes = [ "akka.tcp://roots@"${myIp}":9011" ]
auto-down = on
log-info = off
}
}

I fire up the Akka machinery this way:

val cfg      = ConfigFactory.load( "roots2.cfg" )  // file above
val system   = ActorSystem( "roots", cfg )
system.actorOf( Props(new RootsActor(this)), "b" )
val myAddress = 
system.asInstanceOf[ExtendedActorSystem].provider.rootPath.address
println("Addr: "+myAddress.host+" / "+ myAddress.port)
*// This just prints Addr: None / None*

I'm trying to connect to this from another node using the URI:
val akkaUri = s"""akka.tcp://roots@$host:9012/user/b"""

All nodes have ActorSystem name = "roots", but different Actor names ("a", 
"b" in this case, where "b" is the receiving node for my test).

(where host is set to my computer's IP -- both nodes are running on my 
computer on different netty.tcp ports.)

How can I best see my node's URI information to know if I'm constructing 
the URI correctly on the sender's side?

Thanks,
Greg

-- 
>>>>>>>>>>      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