Hi All,

In App Factory, users can create resources through configure UI,put
different values for each stages(dev,qa...etc) and access those resources
in their applications through registry api.We achieved this through
registry mounting.

App Factory /_system/governance is mounted to common DB.The governance
registry of App Factory will looks like follow

/_system/governance
   |-dependencies
                                 -|dev
                                      |-foo(dev value)
                                 -|qa
                                      |-foo(qa value)
                                 -|stging
                                      |-foo(staging value)
                                 -|prod
                                     |-foo(prod value)

The governance registry of the dev app server also will be mounted to the
same common DB.In addition to that  /_system/governance/dependencies  of
the dev appserver also will be mounted to
/_system/governance/dependencies/dev of common DB.
Same mounting model will be set to all the app servers in other stages as
well.

Then programming model for accessing this resource will looks like follow.

CarbonContext cCtx = CarbonContext.getCurrentContext();
Registry registry = (Registry)
cCtx.getRegistry(RegistryType.SYSTEM_GOVERNANCE);
Resource resource = registry.get("dependencies/foo");

API Manager authorization token(API manager key) also will be managed as
above.

WDYT?
-- 
ajanthan
-- 
Ajanthan Balachandiran
Senior Software Engineer;
Solutions Technologies Team ;WSO2, Inc.;  http://wso2.com/

email: ajanthan <http://goog_595075977>@wso2.com; cell: +94775581497
blog: http://bkayts.blogspot.com/

Lean . Enterprise . Middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to