Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1362

Typed actor references from Receptionist

$
0
0

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 :pensive:.

Appreciate any help.

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1362

Trending Articles