Get it. Thanks for the support.

Regards, Wenxing


------------------ Original ------------------
From:  "Danushka Fernando";<[email protected]>;
Send time: Thursday, Nov 10, 2016 11:43 AM
To: "wenxzhen"<[email protected]>; 
Cc: "Harsha Thirimanna"<[email protected]>; "dev"<[email protected]>; 
Subject:  Re: [Dev] Configuration files per Application



In that case you will need to write a configuration builder your selves.

Thanks & RegardsDanushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729





 
On Thu, Nov 10, 2016 at 8:38 AM, wenxzhen <[email protected]> wrote:
Thanks to Harsha.


The problem in the Registry is that we need the configuration file on the 1st 
startup? Who can take care of that?


Can't I introduce a configuration file like master-datasources.xml, and then 
multiple web app can read the configurations via the Configuration objects?


Regards, Wenxing




------------------ Original ------------------
From:  "Harsha Thirimanna";<[email protected]>;
Send time: Thursday, Nov 10, 2016 11:19 AM
To: "wenxzhen"<[email protected]>; 
Cc: "WSO2 Developers' List"<[email protected]>; 
Subject:  Re: [Dev] Configuration files per Application




Since you want to keep a config file either share for one or multiple web app, 
you primary requirement is to load it from carbon level with the server startup 
and allow to web app to read it, right ?
 So you can use the carbon config registry to store that and server will load 
that in server startup and cache it. You can use that resource among the all 
the application as well within a tenant.
 
https://docs.wso2.com/display/AS530/Working+with+the+Registry
 
 
On Nov 9, 2016 1:09 PM, "wenxzhen" <[email protected]> wrote:
Dear all,


On AS5.3.0, If I wanna create a configuration file for my application, can AS 
or the Carbon Core load up the configuration files on startup and then provide 
the parameters to the application?


Please provide some inputs on this. Thank you very much


Regards, Wenxing

_______________________________________________
 Dev mailing list
 [email protected]
 http://wso2.org/cgi-bin/mailman/listinfo/dev
 






_______________________________________________
 Dev mailing list
 [email protected]
 http://wso2.org/cgi-bin/mailman/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to