Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

application.conf for Scala SBT Akka Actors

Tags:

I was wondering.. where do you put the application.conf file that configures actors in a file? I'm trying to do what is being done here but SBT is not picking up on the file - I was under the impression that SBT will find the application.conf and automatically add it to my -classpath. I currently have application.conf in /project/application.conf

The error I'm getting is:

[ERROR] [04/11/2012 16:08:13.174] [HittingTimeSystem-akka.actor.default-dispatcher-2] [akka://HittingTimeSystem/user/master] error while creating actor akka.config.ConfigurationException:router Actor[akka://HittingTimeSystem/user/master/workerRouter] needs external configuration from file (e.g. application.conf) 

Thanks! -kstruct

like image 923
adelbertc Avatar asked Apr 11 '12 23:04

adelbertc


1 Answers

It should end up on the classpath if you put it in src/main/resources/application.conf

like image 98
stew Avatar answered Sep 28 '22 06:09

stew