I have created a file application.conf in src/main/resources that looks like this:
balancing-dispatcher {
type = BalancingDispatcher
executor = "thread-pool-executor"
}
There is nothing else in the file.
Upon creating a new Actor (through my test suite using Akka TestKit) that tries to use the dispatcher, I receive this error message:
[WARN] [04/13/2013 21:55:28.007] [default-akka.actor.default-dispatcher-2] [Dispatchers] Dispatcher [balancing-dispatcher] not configured, using default-dispatcher
My program then runs correctly, albeit using only a single thread.
Furthermore, I intend to package my program into a library. The akka docs state this:
If you are writing an Akka application, keep you configuration in application.conf at
the root of the class path. If you are writing an Akka-based library, keep its
configuration in reference.conf at the root of the JAR file.
I have tried both of these methods so far, but neither has worked.
Any ideas?