This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
calculator { | |
include "common" | |
akka { | |
remote.netty.port = 2552 | |
} | |
} | |
remotelookup { | |
include "common" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka { | |
actor { | |
provider = "akka.remote.RemoteActorRefProvider" | |
} | |
remote { | |
transport = "akka.remote.netty.NettyRemoteTransport" | |
netty { | |
hostname = "127.0.0.1" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remoteActor = system.actorOf(new Props(JAdvancedCalculatorActor.class), "advancedCalculator"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remoteActor = system.actorFor("akka://[email protected]:2552/user/simpleCalculator"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.typesafe.akka.demo.remote | |
import com.typesafe.config.ConfigFactory | |
import akka.actor.{Actor, Props, ActorSystem} | |
object MyApp extends App { | |
// Create an actor system that listens to port 2552 | |
val actorSystem1 = ActorSystem("actorSystem1", ConfigFactory.parseString(""" | |
akka { | |
actor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.typesafe.akka.demo.remote | |
import com.typesafe.config.ConfigFactory | |
import akka.actor.{Actor, Props, ActorSystem} | |
object MyApp extends App { | |
// Create an actor system that listens to port 2552 | |
val actorSystem1 = ActorSystem("actorSystem1", ConfigFactory.parseString(""" | |
akka { | |
actor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka { | |
actor { | |
provider = "akka.remote.RemoteActorRefProvider" | |
deployment { | |
/actorName { | |
remote = "akka://[email protected]:2553" | |
} | |
} | |
} | |
remote { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
actorSystem1 { | |
akka { | |
# the config for actorSystem1 | |
} | |
} | |
actorSystem2 { | |
akka { | |
# the config for actorSystem2 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
akka { | |
actor { | |
provider = "akka.remote.RemoteActorRefProvider" | |
} | |
remote { | |
transport = "akka.remote.netty.NettyRemoteTransport" | |
netty { | |
hostname = "127.0.0.1" | |
port = 2552 | |
} |
NewerOlder