Updated documentation to reflect changes in remoting

This commit is contained in:
Endre Sándor Varga 2013-01-23 11:38:20 +01:00
parent a31d98340f
commit c4abbd95bd
11 changed files with 219 additions and 91 deletions

View file

@ -44,8 +44,8 @@ public class RemoteDeploymentDocTestBase {
@Test
public void demonstrateDeployment() {
//#make-address
Address addr = new Address("akka", "sys", "host", 1234);
addr = AddressFromURIString.parse("akka://sys@host:1234"); // the same
Address addr = new Address("akka.tcp", "sys", "host", 1234);
addr = AddressFromURIString.parse("akka.tcp://sys@host:1234"); // the same
//#make-address
//#deploy
ActorRef ref = system.actorOf(new Props(SampleActor.class).withDeploy(
@ -66,7 +66,7 @@ public class RemoteDeploymentDocTestBase {
@Test
public void demonstrateProgrammaticConfig() {
//#programmatic
ConfigFactory.parseString("akka.remote.netty.hostname=\"1.2.3.4\"")
ConfigFactory.parseString("akka.remote.netty.tcp.hostname=\"1.2.3.4\"")
.withFallback(ConfigFactory.load());
//#programmatic
}