I’m using akka 2.5.21, in Java.
After registering the actors (and also spawning them) to a Receptionist I tried to look them up in another class with Receptionist.Find
message.
For this I created a temp actor with Receptionist.Listing
behavior and invoked Receptionist.Find
message, like this context.getSystem().receptionist().tell(Receptionist.find(myLookupServiceKey, this));
But the on the Receptionist.Listing
response from Receptionist when I do .getServiceInstances(myLookupServiceKey)
I get an empty set.
This seems like a simple way to find references to typed actor previously spawned elsewhere in the system, but looks a dead end .
Appreciate any help.
2 posts - 1 participant