I do not know for sure whether the @Jan Goyvaerts code has been updated so far, as of September 2019 this line does not work:
final ActorRef actor = actorSystem.actorOf(new Props(SeverEventHandler.class));
I think the right way to do this now might be:
ActorRef newActor = system.actorOf(Props.create(AATestAkkaEventBus.class));
I am by no means sure of this, please correct me if I am wrong
Cheapgucciclothing
source share