This file contains 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 | |
} |
This file contains 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 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://actorSystem@127.0.0.1:2553" | |
} | |
} | |
} | |
remote { |
This file contains 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 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 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://CalculatorApplication@127.0.0.1:2552/user/simpleCalculator"); |
This file contains 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 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 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 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" |
OlderNewer