I have an actor system configured with remote and pinned dispatcher
my-setting {
akka {
actor {
provider = "akka.remote.RemoteActorRefProvider"
my-pinned-dispatcher {
executor = "thread-pool-executor"
type = PinnedDispatcher
}
}
remote {
netty.tcp {
hostname = "127.0.0.1"
port = 1234
}
}
}
}
My actor that will be created is instantiated within another actor as
below:
val myActor = context.actorOf(Props(classOf[MyActor]).
withDispatcher("my-setting.my-pinned-dispatcher"), "myActorName")
But it throws exception saying
Dispatcher [my-setting.my-pinned-dispatcher] not configured for path
akka://MySystem/user/actor1/myActorName
at
akka.remote.RemoteActorRefProvider.actorOf(RemoteActorRefProvider.scala:219)
at akka.actor.dungeon.Children$class.makeChild(Children.scala:191)
...
I check RemoteActorRefProvider.scala source, it seems to me that it doesn't
successfully configure dispatcher because at line 219 it checks if the
system has dispatcher
if (!system.dispatchers.hasDispatcher(props.dispatcher))
throw new ConfigurationException(s"Dispatcher [${props.dispatcher}]
not configured for path $path")
How can I configure pinned dispatcher with RemoteActorRefProvider enabled?
akka version is 2.2.3
Thanks
--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups "Akka
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.