AkkaGuice icon indicating copy to clipboard operation
AkkaGuice copied to clipboard

PerRequest Actor getting the same name

Open chanan opened this issue 11 years ago • 1 comments

Error in custom provider, akka.actor.InvalidActorNameException: actor name [PerRequest-114326323442451120] is not unique! at akkaGuice.AkkaGuiceModule.RegisterActors(AkkaGuiceModule.java:59) while locating akka.actor.ActorRef annotated with @com.google.inject.name.Named(value=PerRequest) for parameter 4 at controllers.Application.(Application.java:24) while locating controllers.Application

chanan avatar Nov 18 '14 21:11 chanan

This happens when trying to inject into the constructor a per request actor. Singleton actors are fine and also using PropsContext is.

chanan avatar Nov 19 '14 14:11 chanan