Re: [akka-user] Akka config file with a jar used as dependency

2015-06-15 Thread Maatary Okouya
Understood. Many thanks On Mon, Jun 15, 2015 at 10:50 AM, Patrik Nordwall wrote: > A library should use reference.conf file to define its configuration > properties. All reference.conf files in the classpath will be merged. End > application can override by defining properties in its application

Re: [akka-user] Akka config file with a jar used as dependency

2015-06-15 Thread Patrik Nordwall
A library should use reference.conf file to define its configuration properties. All reference.conf files in the classpath will be merged. End application can override by defining properties in its application.conf. /Patrik On Tue, Jun 9, 2015 at 7:11 PM, Brian Topping wrote: > Hi Daniel, > > W

Re: [akka-user] Akka config file with a jar used as dependency

2015-06-10 Thread Brian Topping
Hi Daniel, What have you tried so far? What specifically isn't working? Two documentation sources that you'll want to be familiar with are http://doc.akka.io/docs/akka/2.3.0/general/configuration.html and https://github.com/types

Re: [akka-user] Akka config file with a jar used as dependency

2015-06-09 Thread Guido Medina
The class loader effect, precedence, naming and how to load a custom configuration is very well explained at the end of the Akka documentation general section: http://doc.akka.io/docs/akka/2.3.11/general/configuration.html HTH -- >> Read the docs: http://akka.io/docs/ >>

Re: [akka-user] Akka config file with a jar used as dependency

2015-06-09 Thread Dragisa Krsmanovic
If there are multiple reference.conf files in class path, there is no way to predict in which order Typesafe config will read these files. It's important to namespace your custom configuration so there is no chance of some other library stepping over your settings. On Tue, Jun 9, 2015 at 11:43

Re: [akka-user] Akka config file with a jar used as dependency

2015-06-09 Thread Maatary Okouya
Thanks for the tip. I'm readying the typeSafe config doc now. However i am confused between what is said in akka doc and typesafe doc. When fetching config file in the classpath, does it only fetch what is at the root or in all folder in the classpath such as inside jars ? Concerning your a

Re: [akka-user] Akka config file with a jar used as dependency

2015-06-09 Thread Dragisa Krsmanovic
Akka uses Typesafe config. You should rename application.conf to reference.conf in you library to allow user of your library to override configuration. Typesafe config automatically includes all reference.conf and application.conf it finds in the classpath. With the later having precedence. htt

[akka-user] Akka config file with a jar used as dependency

2015-06-09 Thread Maatary Okouya
Hi, I'm developing a lib that use akka. When the main program that will use my lib will run, how to make sure that the application.conf that is inside my lib is actually used ? I have a red the configuration topic of the doc, but i think i need more detail to understand how an actor system fe