Re: Starting thread when Orion starts
you can only set the servlet to be loaded/initialized upon _application_ startup (web.xml). If server startup is where you want to go, you will have to specify that the app is preloaded as well (the latter is server-specific) -Original Message- From: J.T. Wenting <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Date: Mittwoch, 25. Oktober 2000 17:07 Subject: RE: Starting thread when Orion starts >You can create a servlet that starts the thread in its init(), then set the >servlet to be initialised on server startup. > >Jeroen T. Wenting >[EMAIL PROTECTED] > >Murphy was wrong, things that can't go wrong will anyway > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksi Kallio >> Sent: Wednesday, October 25, 2000 12:57 >> To: Orion-Interest >> Subject: Starting thread when Orion starts >> >> >> I have a thread that needs to be running when Orion is up. How to >> implement it so that it automatically starts when Orion is >> started (ie. how Orion informs its bootup)? >> >> >> > >
RE: Starting thread when Orion starts
You could write a J2EE client module, and specify it should be started upon startup of the server (can't remember in which .xml file it is specified). Or you could write a program with a main() which will start your thread and Orion... Look in the manifest of orion.jar to know the main class name. Hope this helps. Christophe > -Original Message- > From: Aleksi Kallio [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 25, 2000 12:57 PM > To: Orion-Interest > Subject: Starting thread when Orion starts > > > I have a thread that needs to be running when Orion is up. > How to implement it so that it automatically starts when > Orion is started (ie. how Orion informs its bootup)? > > >
RE: Starting thread when Orion starts
You can create a servlet that starts the thread in its init(), then set the servlet to be initialised on server startup. Jeroen T. Wenting [EMAIL PROTECTED] Murphy was wrong, things that can't go wrong will anyway > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksi Kallio > Sent: Wednesday, October 25, 2000 12:57 > To: Orion-Interest > Subject: Starting thread when Orion starts > > > I have a thread that needs to be running when Orion is up. How to > implement it so that it automatically starts when Orion is > started (ie. how Orion informs its bootup)? > > >
RE: Starting thread when Orion starts
make it a servlet that is preloaded. Start the thread in the init method. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Aleksi Kallio > Sent: Wednesday, October 25, 2000 6:57 AM > To: Orion-Interest > Subject: Starting thread when Orion starts > > > I have a thread that needs to be running when Orion is up. How to > implement it so that it automatically starts when Orion is started > (ie. how Orion informs its bootup)? > > > >
RE: Starting thread when Orion starts
Title: RE: Starting thread when Orion starts com.acme.servlet.init.InitializationServlet The Snajjd Initialization Servlet. com.acme.servlet.init.InitializationServlet 1 -Original Message- From: Aleksi Kallio [mailto:[EMAIL PROTECTED]] Sent: den 25 oktober 2000 12:57 To: Orion-Interest Subject: Starting thread when Orion starts I have a thread that needs to be running when Orion is up. How to implement it so that it automatically starts when Orion is started (ie. how Orion informs its bootup)?
Starting thread when Orion starts
I have a thread that needs to be running when Orion is up. How to implement it so that it automatically starts when Orion is started (ie. how Orion informs its bootup)?