Akka default vs runtime configuration -
i read akka v2.3.11 docs (java, not scala) , still bit confused how configuration works. in section 2.9.2 ("akka , jar bundling") states:
akka’s configuration approach relies heavily on notion of every module/jar having own reference.conf file, of these discovered configuration , loaded. unfortunately means if put/merge multiple jars same jar, need merge reference.confs well. otherwise defaults lost , akka not function.
being brand new akka , actors, having been java developer 10+ years, have never once before seen reference.conf
file in jar. akka talking here? insinuating if akka project uses, say, guice , guava, need define reference.conf
files each of these?!?
also, can confirm understanding of application.conf
vs reference.conf
? understanding supposed define reference.conf
contains default akka configs, , define application.conf
overrides it? if that's true, why use reference.conf
in first place? why not use application.conf
? i'm confused.
akka uses typesafe config library, have @ documentation https://github.com/typesafehub/config/blob/master/readme.md explains difference between reference.conf
, application.conf
.
basically reference.conf
comes akka libraries, user shouldn't touch (but can use reference) unless merging multiple jars (not necessary akka jars) use typesafe config library 1 jar.
Comments
Post a Comment