ActorAttributes.dispatcher("") not working in playframework

Hi,

I’m trying to use a custom dispatcher with akka stream like this :

Source.single("a string").withAttributes(ActorAttributes.dispatcher("jdbc-dispatcher"));

But It fail with the following error :

akka.ConfigurationException: Dispatcher [jdbc-execution-context] not configured for path akka://play-dev-mode/system/StreamSupervisor-0/flow-36-1-futureFlattenSource

Even if this dispatcher is working with

actorSystem.dispatcher().lookup("jdbc-execution-context")

Any idea ?

1 Like