In your default-web-site.xml, or whichever config file you load you web site
in, change the load-on-statup value
e.g.
<web-app application="app1" load-on-startup="true" max-inactivity-time="1"
name="app1-web" root="/app1" />
The web app will be loaded when orion is started, and your load-on-startup
servlet will start.
Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Ari Halberstadt [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2000 3:51 AM
To: Orion-Interest
Subject: how to get a web application to startup automatically?
I've got a web application that needs to spawn a background thread as soon
as it
is started up (the background thread is used to schedule things at specific
times). Adding a load-on-startup value to the web.xml file does not load the
corresponding servlet until a URL from the enclosing web application is
accessed. But this means that I would need to have a user (or some external
process) wait until Orion has started up and then hit a URL in the web
application. What I'd like to do is have Orion automatically load the
servlet
when the server is started up (as specified in the load-on-startup flag).
Does
anyone have suggestions on how to get this to work?
Details: Orion 1.1.9, JDK1.3.0, NT4