+1. I think this is a good solution. Currently we are writing to registry no matter what. Specially when it comes to stratos environments no need to write it from each server restart. Since the solution is configurable i think this is a good solution. On Apr 18, 2014 4:33 PM, "Eranda Sooriyabandara" <[email protected]> wrote:
> Hi All, > Currently we are loading super tenant themes to the registry in each > server startup, when the themes-mgt bundle start. Since this involves > registry calls this cause considerable startup delay. So here we are > proposing a configuration which we can enable to stop loading themes. > > Here is the configuration which we will be adding to the carbon.xml > > <ReloadThemes>true</ReloadThemes> > > There can be several cases, > > 1. Configuration is not in carbon.xml - This will consider this > configuration value as true and will reload the themes every time start the > server > 2. Configuration value true - This will reload the themes every time > start the server > 3. Configuration value false - This will stop updating the themes in > registry every time start the server > 4. Configuration value other than true/false - This will consider this > configuration value as false and won't reload the themes. > 5. Theme not in the registry - If the theme which is in the file > system is not there in the registry, it will ignore the ReloadThemes > configuration value and add that theme to registry. > > Thoughts? > Patch attached. > > thanks > Eranda > > -- > > *Eranda Sooriyabandara*Senior Software Engineer; > Integration Technologies Team; > WSO2 Inc.; http://wso2.com > Lean . Enterprise . Middleware > > E-mail: eranda AT wso2.com > Mobile: +94 716 472 816 > Linked-In: http://www.linkedin.com/in/erandasooriyabandara > Blog: http://emsooriyabandara.blogspot.com/ > > > > > > _______________________________________________ > 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
