> From: "Caldarale, Charles R" <[EMAIL PROTECTED]> > > > From: Michael Hackett [mailto:[EMAIL PROTECTED] > > > > We want to prompt the user for the database password and > > boot the database before launching the real application. > > What user?
The user of the web app. In this case, there will only be one user, the user of the machine where the server is running. (The same app will also be used in a typical remote client-server environment, but in that case, we'll be hosting the database and encryption won't be necessary.) > > I guess we will have to look at controlling the database > > startup and shutdown within the main app > > Is there some reason an ServletContextListener won't work? (See section > 10.2.2 of the Servlet spec - it seems to describe a situation very close > to yours.) That appears to allow the app to receive notification of start up and shut down, but not to control it, correct? Plus, I can't quite see how this is much different than the init/destroy methods of the servlet (except maybe in the case of an app with several servlets, where it sounds like the listener events would be sent after all servlets are initialized; but I could be wrong there). Anyway, I appreciate the attempt, but I don't think that solves my problem of controlling the startup of a webapp or servlet from another webapp or servlet. Maybe having the webapps in two different Hosts, with only one set to deploy on startup? There's probably some other problem with that set up, though, that I haven't thought of. -- Michael --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]