Skip to content
Snippets Groups Projects

Upgraded the project to the newest Akka Actor version

Closed evindar requested to merge dev-upgrade into master
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -2,7 +2,7 @@ package fucoin;
import java.io.File;
import akka.actor.ActorPath;
import akka.actor.ActorPaths;
import akka.actor.ActorRef;
import akka.actor.ActorSystem;
import akka.actor.Address;
@@ -23,9 +23,9 @@ public class MainRemote {
Address address = new Address("akka.tcp", "Core", "127.0.0.1", 1234);
System.out.println(address);
String path = "akka.tcp://Core@127.0.0.1:1234/user/Main";
System.out.println(system.actorSelection(ActorPath.fromString(path)));
System.out.println(system.actorSelection(ActorPaths.fromString(path)));
System.out.println(ActorPath.isValidPathElement(""+address+"/user/Main"));
System.out.println(ActorPaths.isValidPathElement(""+address+"/user/Main"));
ActorRef a1 = system.actorOf(Wallet.props(null,"","Main2",remoteSuperVisorActor),"Main2");
}
Loading