From: Chris <sh...@ya...> - 2004-01-28 02:58:21
|
I'm using Jetty as an embedded server. I create a org.mortbay.jetty.Server object, and then specify a webapps directory: server.addWebApplications(null, // virtual host homeDir + "webapps/", // webapps dir homeDir + "webapps/root/WEB-INF/webdefault.xml", // defaults true); // extract wars server.start(); This causes all webapps to be loaded on startup. The log gets entries like this: 20:32:59.298 EVENT [main]org.mortbay.http.HttpContext.start(HttpContext.java:1901)22> Started WebApplicationContext[/mysite,file:/C:/mydir/webapps/mysite/] I'd prefer that the system ignore the contents of the webapps directory until a user actually makes a request for a particular webapp (by issuing an http request from a browser). Is there any way to do this? My webdefaults.xml look just like the default that comes with Jetty. It has <load-on-startup>0</load-on-startup> in a couple of places. I'm using Jetty 4.2.15. |