Author: doogie
Date: Wed Jun 29 22:12:26 2011
New Revision: 1141287
URL:
http://svn.apache.org/viewvc?rev=1141287&view=revLog:
OPTIMIZE: Move the loading of the webapp components into the start()
lifecycle method, instead of init().
Modified:
ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
Modified: ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java?rev=1141287&r1=1141286&r2=1141287&view=diff==============================================================================
--- ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java (original)
+++ ofbiz/trunk/framework/catalina/src/org/ofbiz/catalina/container/CatalinaContainer.java Wed Jun 29 22:12:26 2011
@@ -202,9 +202,6 @@ public class CatalinaContainer implement
createEngine(engineProp);
}
- // load the web applications
- loadComponents();
-
// create the connectors
List<ContainerConfig.Container.Property> connectorProps = cc.getPropertiesWithValue("connector");
if (UtilValidate.isEmpty(connectorProps)) {
@@ -229,6 +226,9 @@ public class CatalinaContainer implement
throw new ContainerException(e);
}
+ // load the web applications
+ loadComponents();
+
for (Connector con: embedded.findConnectors()) {
ProtocolHandler ph = con.getProtocolHandler();
if (ph instanceof Http11Protocol) {