Once you write your wrapper you can make it a service by using a program like JavaService, which I believe can be downloaded at http://www.alexandriasc.com/software/JavaService/index.html
Once you have your service created you can modify the registry entry for the service under: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Service/<service_name> Add a key named "DependOnService" and make it type REG_MULTI_SZ To the value list for this key, add the service name for any service you want this service to be dependent on (in this case probably just "Apache Tomcat 4.1". Any questions, drop us a line. ----- Original Message ----- From: "RamKumar" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 8:28 AM Subject: Re: How to run as a startup application!!! > Hi Tom, > Could you please more specific on this topic?..How to install as > service and how to make it dependent on tomcat? > > thanks, > -Ramkumar > > ----- Original Message ----- > From: "Tom Cole" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, July 02, 2003 5:45 PM > Subject: Re: How to run as a startup application!!! > > > > Write a wrapper with a main class that launches your app, then install it > as > > a service, making it dependent on Apache Tomcat service. > > > > ----- Original Message ----- > > From: "RamKumar" <[EMAIL PROTECTED]> > > To: "Tomcat Users List" <[EMAIL PROTECTED]> > > Sent: Wednesday, July 02, 2003 7:45 AM > > Subject: How to run as a startup application!!! > > > > > > Hi All, > > I want to run a java class in a separate daemon thread whenever > the > > tomcat starts.How to do this?. > > > > This class is neither a servlet nor a Java Main Application. It is plain > > java class without main(string ar[]) method. > > > > Any idea?.. > > > > thanks, > > Ramkumar > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
