title: Are Akka .conf dispatcher configuration working?
body: <p>I'm using Akka 2.2-RC1 and I'm not able to get Akka to load dispatcher configuration from application.conf:</p>
  
  <pre><code>my-dispatcher {
    type = PinnedDispatcher
    executor = "thread-pool-executor"
  }
  
  akka.actor.deployment {
    /test {
      dispatcher = my-dispatcher
    }
  }
  </code></pre>
  
  <p>When instantiated from code like</p>
  
  <pre><code> val test = system.actorOf(Props[Test], "test")
  </code></pre>
  
  <p>by logs it is still using <code>akka.actor.default-dispatcher</code>.</p>
  
  <p>When I'm adding <code>.withDispatcher("my-dispatcher")</code> to Props all is working properly and <code>my-dispatcher</code> is used. But I do not like idea of adding <code>.withDispatcher(...)</code> to all my actors...</p>
  
  <p>Do anyone know where could be a problem? I was thinking that actor path may be wrong, but apllication.conf routing configuration works properly (with exception of custom routee dispatcher, again).</p>
  
  <hr>
  
  <p>After some testing I've found that this effect is caused by use of <code>RemoteActorRefProvider</code>. As soon as I disabled it and changed to default</p>
  
  <pre><code>akka.actor.provider = "akka.actor.LocalActorRefProvider"
  </code></pre>
  
  <p>dispatchers were configuring from config properly.</p>
  
  <p>I guess with remoting enabled Akka looks elsewhere for configuration of actor dispatchers or maybe remote refs have different logical paths?</p>