chanan / AkkaGuice

Akka Guice Integration for Playframework
The Unlicense
32 stars 4 forks source link

PerRequest Actor getting the same name #4

Open chanan opened 9 years ago

chanan commented 9 years ago

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 commented 9 years ago

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