Skip to content

Instantly share code, notes, and snippets.

Henrik Engstrom (@h3nk3) henrikengstrom

  • NYC/NY/USA
Block or report user

Report or block henrikengstrom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am henrikengstrom on github.
  • I am h3nk3 (https://keybase.io/h3nk3) on keybase.
  • I have a public key whose fingerprint is 31C1 1375 AC5C 0575 AD34 EE7D 35CE 457A A97A C6B8

To claim this, I am signing this object:

View gist:1511728
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 {
@henrikengstrom
henrikengstrom / application
Created Dec 22, 2011
Akka 2.0 application.conf example
View application
akka {
actor {
provider = "akka.remote.RemoteActorRefProvider"
}
remote {
transport = "akka.remote.netty.NettyRemoteTransport"
netty {
hostname = "127.0.0.1"
port = 2552
}
@henrikengstrom
henrikengstrom / application.conf
Created Dec 22, 2011
Akka 2.0 application.conf example
View application.conf
actorSystem1 {
akka {
# the config for actorSystem1
}
}
actorSystem2 {
akka {
# the config for actorSystem2
}
View gist:1511553
akka {
actor {
provider = "akka.remote.RemoteActorRefProvider"
deployment {
/actorName {
remote = "akka://actorSystem@127.0.0.1:2553"
}
}
}
remote {
View gist:1511732
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 {
View gist:1539479
calculator {
include "common"
akka {
remote.netty.port = 2552
}
}
remotelookup {
include "common"
View gist:1539480
calculator {
include "common"
akka {
remote.netty.port = 2552
}
}
remotelookup {
include "common"
View gist:1539451
remoteActor = system.actorFor("akka://CalculatorApplication@127.0.0.1:2552/user/simpleCalculator");
View gist:1539458
remoteActor = system.actorOf(new Props(JAdvancedCalculatorActor.class), "advancedCalculator");
You can’t perform that action at this time.