If you are looking for an inbuilt thing you can use registry as well.

[1]
http://wdfdo1986.blogspot.com/2014/06/tips-to-write-enterprise-application-on.html

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

On Thu, Nov 10, 2016 at 7:20 AM, wenxzhen <wenxing.zh...@qq.com> wrote:

>
> Thanks to Danushka.
>
> So it means we need to create the configuration builder by ourselves? And
> it can't be done by the AS framework?
>
> Regards, Wenxing
>
> ------------------ Original ------------------
> *From: * "Danushka Fernando";<danush...@wso2.com>;
> *Send time:* Wednesday, Nov 9, 2016 8:10 PM
> *To:* "wenxzhen"<wenxing.zh...@qq.com>;
> *Cc:* "dev"<dev@wso2.org>;
> *Subject: * Re: [Dev] Configuration files per Application
>
> Do you want to use a configuration for one application or do you need to
> share it across several applications?
> If its for just one you can bundle it inside the application similar to
> how you do it in tomcat. But if you want to share it or its need to be read
> from some jar file you put in to repository/components/lib or dropins then
> you can refer to [1]
>
> [1] https://github.com/wso2/product-af/blob/master/
> modules/components/org.wso2.carbon.appfactory.common/src/
> main/java/org/wso2/carbon/appfactory/common/AppFactoryConfigurationBuilder
> .java
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729
>
> On Wed, Nov 9, 2016 at 1:08 PM, wenxzhen <wenxing.zh...@qq.com> 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
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to