Hi,<br><br>using an OpenCms instance with several sites, some of them e-commerce, we also would be glad to reduce the tomcat restarts to a minimum, and as of now we also "suffer" from<br>the fact that after changing opencms-system.xml a restart is required...<br>
<br>A restart, even when it happens rarely, is always an interruption of service.<br><br>Also, there can be a situation where you absolutely need to restart, but you can not because of active sessions in the e-commerce site.<br>
<br>Please take this as a vote to the feature "OpenCms to be able to re-read opencms-system.xml while running" :)<br><br>best regards,<br>Yves<br><br><br><div class="gmail_quote">On 19 March 2010 09:48, Mario Jäger <span dir="ltr"><<a href="mailto:m.jaeger@alkacon.com">m.jaeger@alkacon.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi Olaitan,<br>
<br>
It is always necessary to restart the servlet container after you changed the OpenCms<br>
configuration files. You can not use the method OpenCms.getSiteManager().addSite() to<br>
add a site after the OpenCms configuration is finished, because the description of<br>
this method says the following: "Adds a new CmsSite to the list of configured sites,<br>
this is only allowed during configuration. If this method is called after the<br>
configuration is finished, a RuntimeException is thrown."<br>
<br>
But I can not imagine, that you add many sites each day or week. That is why I can not<br>
imagine that you really need a workaround for this. Or how often do you want to add<br>
new sites?<br>
<br>
--<br>
Kind Regards,<br>
Mario.<br>
<br>
-------------------<br>
Mario Jäger<br>
<br>
Alkacon Software GmbH - The OpenCms Experts<br>
<a href="http://www.alkacon.com" target="_blank">http://www.alkacon.com</a> - <a href="http://www.opencms.org" target="_blank">http://www.opencms.org</a><br>
<br>
<br>
Olaitan Olamilehin schrieb:<br>
<div class="im">> Hi all,<br>
><br>
> Currently, a restart is needed each time a new site is added to the<br>
> opecms-system.xml config file. I tried to do this programmatically using<br>
> this method OpenCms.getSiteManager().addSite() but I got a<br>
> CmsConfigurationException stating "Site configuration has been frozen<br>
> and can no longer be changed".<br>
><br>
> Is there any workaround for this? Any help will be highly appreciated.<br>
><br>
><br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</div></div></blockquote></div><br>