[Dev] [Carbon] - Usage and behaviour of the ServerConfiguration class

2014-10-01 Thread Chamila De Alwis
Hi, I've been going through the ServerConfiguration class, to understand how it is being initiated and configurations are loaded. The init() method initializes and starts reading and loading the properties. And it uses conf/carbon.xml as the default value for the configuration XML file. What I

Re: [Dev] [Carbon] - Usage and behaviour of the ServerConfiguration class

2014-10-01 Thread Manoj Gunawardena
Hi, I also writing a code to read a configuration files exists in the repository/conf folder. I am planning to use ServerConfiguration class as follows. Pass the configuration file, which i want to load, into init method and get the properties list. The serverconfiguartion class uses singleton

Re: [Dev] [Carbon] - Usage and behaviour of the ServerConfiguration class

2014-10-01 Thread Chamila De Alwis
Hi Manoj, Let me clarify my situation a bit further. I want to read some properties from the carbon.xml, from outside the JVM running Carbon. The value for CARBON_HOME is not available to me, so my main concern is locating the carbon.xml file from an external context. The single instance of the