Understood. Many thanks

On Mon, Jun 15, 2015 at 10:50 AM, Patrik Nordwall <[email protected]
> 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.conf.
>
> /Patrik
>
> On Tue, Jun 9, 2015 at 7:11 PM, Brian Topping <[email protected]>
> wrote:
>
>> 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/typesafehub/config. You'll note the first one covers
>> the difference between "application.conf" and "reference.conf", the latter
>> for loaded libraries. That seems appropriate for your usage.
>>
>> I haven't run an ActorSystem from within a J2EE webapp, but I can't
>> imagine that it would have any problem running like that. If you have
>> problems discovering the configuration because of classpath issues, you
>> could build the configuration yourself and pass it to the ActorSystem
>> instantiation.
>>
>> Hope that helps some... Brian
>>
>> On Jun 9, 2015, at 9:54 AM, Maatary Okouya <[email protected]>
>> wrote:
>>
>> 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 fetch for configuration.
>>
>>
>> Although i am clear on how it would work in a standalone application, it
>> is less clear how that will work, when integrated to a Web app of the
>> Tomcat model.  That is, my app is in tomcat, and my lib is about to be an
>> external dependency of the app. I have trouble with how to manage the
>> config file. *Can it be shipped with my lib, shall the webapp define a
>> new one, if so, where should it be set (with respect to the TomCat webapp
>> model i.e. its resource folder). *
>>
>> *When developing my lib, obviously application.conf is in the
>> src/resource folder, and therefore get added at the head of the jar.*
>>
>>
>> *What happens, if no config file is provided ? is there some hardwired
>> default value ? *
>>
>> *When the web-app is started, would the Actor system magically look for
>> the application.conf that is in my jar ? *
>>
>>
>> *I think to a certain degree there is the more general question of
>> understanding what happens to libs that get shipped with their default
>> configuration in their jar. *
>>
>> *I hope some can give me some heads up on that. *
>>
>>
>> *Many thanks,*
>>
>> *Daniel*
>>
>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>  --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ:
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Patrik Nordwall
> Typesafe <http://typesafe.com/> -  Reactive apps on the JVM
> Twitter: @patriknw
>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/xwdeWvquXPM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to