2012-08-30 36 views
17

tôi tạo ra các application.conf followind:Akka :: phối [% name%] không được cấu hình, sử dụng mặc định-điều phối

akka { 

    actor { 

     prio-dispatcher { 
      type = "Dispatcher" 
      mailbox-type = "my.package.PrioritizedMailbox" 
     } 

    } 

} 

khi bán phá giá với cấu hình

actorSystem = ActorSystem.create() 
println(actorSystem.settings) 

Tôi nhận được đầu ra:

 # application.conf: 5 
     "prio-dispatcher" : { 
      # application.conf: 7 
      "mailbox-type" : "my.package.PrioritizedMailbox", 
      # application.conf: 6 
      "type" : "Dispatcher" 
     }, 

và sau này

[WARN] [08/30/2012 22:44:54.362] [default-akka.actor.default-dispatcher-3] [Dispatchers] Dispatcher [prio-dispatcher] not configured, using default-dispatcher 

Tôi thiếu gì ở đây?

UPD Tìm thấy giải pháp here, phải sử dụng cái tên "akka.actor.prio-dispatcher"

+0

Vui lòng thêm câu trả lời cho câu hỏi của bạn và tự chấp nhận câu hỏi. –

Trả lời

Các vấn đề liên quan