Search in sources :

Example 1 with WonNodeControllerActor

use of won.matcher.service.nodemanager.actor.WonNodeControllerActor in project webofneeds by researchstudio-sat.

the class AkkaSystemMain method main.

public static void main(String[] args) throws IOException {
    System.out.println("Environment: ");
    System.out.println("------------ ");
    Map<String, String> env = System.getenv();
    for (String envName : env.keySet()) {
        System.out.format("%s=%s%n", envName, env.get(envName));
    }
    AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MatcherServiceAppConfiguration.class);
    ActorSystem system = ctx.getBean(ActorSystem.class);
    ActorRef wonNodeControllerActor = system.actorOf(SpringExtension.SpringExtProvider.get(system).props(WonNodeControllerActor.class), "WonNodeControllerActor");
    ActorRef rematchActor = system.actorOf(SpringExtension.SpringExtProvider.get(system).props(RematchActor.class), "RematchActor");
}
Also used : ActorSystem(akka.actor.ActorSystem) AnnotationConfigApplicationContext(org.springframework.context.annotation.AnnotationConfigApplicationContext) WonNodeControllerActor(won.matcher.service.nodemanager.actor.WonNodeControllerActor) RematchActor(won.matcher.service.rematch.actor.RematchActor) ActorRef(akka.actor.ActorRef)

Aggregations

ActorRef (akka.actor.ActorRef)1 ActorSystem (akka.actor.ActorSystem)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1 WonNodeControllerActor (won.matcher.service.nodemanager.actor.WonNodeControllerActor)1 RematchActor (won.matcher.service.rematch.actor.RematchActor)1