Johan
Problem with reading from seperate places is like this. How we have read
yaml files is using snakeyaml library, we create a class with parameters as
same name as yaml file properties. And we pass this class and we retrieve
object of that mapping bean. So how should we achieve that?
One idea was to have a common bean in commons and have sub beans in
component. But that will lead to a cyclic dependency.

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

On Thu, Jan 19, 2017 at 2:03 PM, Johann Nallathamby <[email protected]> wrote:

> Hi Danushka,
>
> Did you see [1]? The thread talks about a single config file for the most
> commonly changed config files. However the thread doesn't seem to have a
> conclusion.
>
> @Kernel Team,
> Is this something we have completed implementing? If so can you share some
> latest details of how we should be using it?
>
> @Danushka,
> In any case one mistake we made in C4 based IS is reading and parsing the
> identity.xml from a single component - identity.core. We must not make the
> same mistake again. Each component must pass its own configuration in the
> yaml file using snakeyaml and build its own configuration model. This will
> achieve less coupling among bundles. Of course you can have utilities in
> [2] if needed to pass identity.yaml but nothing specific to a specific
> feature.
>
> So I think to summarize, the configuration file is specific to the product
> and a single file for the whole server, but parsing the file is the
> responsibility of each component. This doesn't apply for more complex
> configurations such as claim-config.yaml, user-store-config.yaml, etc.
>
> [1] [Architecture] Configuration files in C5
> [2] https://github.com/wso2/carbon-identity-commons/tree/mas
> ter/components/org.wso2.carbon.identity.common/src/main/
> java/org/wso2/carbon/identity/common/util
>
> Regards,
> Johann.
>
> On Thu, Jan 19, 2017 at 1:46 PM, Danushka Fernando <[email protected]>
> wrote:
>
>> Hi All
>> We are currently working on setting challenge questions feature for IS
>> 6.0.0-M1. We need some configurations specific to security questions /
>> account recovery section. In C4 based products it was in identity.xml which
>> is the server configuration. In C5 code we dont have created a such file.
>> We have several user management related configs which are deployed
>> separately in C4 as well. But when we are moving towards C5, what should be
>> the way of creating these configs. Is it component wise or server wise?
>>
>> Any ideas are appreciated.
>>
>> Thanks & Regards
>> Danushka Fernando
>> Senior Software Engineer
>> WSO2 inc. http://wso2.com/
>> Mobile : +94716332729 <+94%2071%20633%202729>
>>
>
>
>
> --
> Thanks & Regards,
>
> *Johann Dilantha Nallathamby*
> Technical Lead & Product Lead of WSO2 Identity Server
> Governance Technologies Team
> WSO2, Inc.
> lean.enterprise.middleware
>
> Mobile - *+94777776950*
> Blog - *http://nallaa.wordpress.com <http://nallaa.wordpress.com>*
>
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to