Re: starting Tomcat service
My two cents: Write a Script in Windows, make it service (Plenty of code on Web), which starts on when Windows start. On 9/23/05, Tuan Quan <[EMAIL PROTECTED]> wrote: > Thanks Kerem, > But I want the script to run at boot time, in Windows. > Rather than having to login and run the script manually. > > > KEREM ERKAN <[EMAIL PROTECTED]> wrote: > You may write a shell script which includes a java program to test oracle > connectivity and if it can connect, it can be used to start Tomcat. If it > fails, it may say "Oracle down, I am not starting Tomcat". > > Cheers, > > Kerem > > > -Original Message- > > From: Tuan Quan [mailto:[EMAIL PROTECTED] > > Sent: Thursday, September 22, 2005 10:48 PM > > To: tomcat-user@jakarta.apache.org > > Subject: starting Tomcat service > > > > In windows, one of my webapp needs to connect to a database > > in order to work correctly. > > How can I check for oracle database ready before starting > > Tomcat service? > > Set 'DependOnService' parameter in registry to point to > > Oracle db service, may work, but what if the database is on a > > different PC? > > > > thanks > > > > > > > > - > > Yahoo! for Good > > Click here to donate to the Hurricane Katrina relief effort. > > > > > - > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: starting Tomcat service
> From: Tuan Quan [mailto:[EMAIL PROTECTED] > But I want the script to run at boot time, in Windows. You might wish to look at srvany (http://support.microsoft.com/default.aspx/kb/q137890/). This allows you to start any process as a Windows service. - Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: starting Tomcat service
Thanks Kerem, But I want the script to run at boot time, in Windows. Rather than having to login and run the script manually. KEREM ERKAN <[EMAIL PROTECTED]> wrote: You may write a shell script which includes a java program to test oracle connectivity and if it can connect, it can be used to start Tomcat. If it fails, it may say "Oracle down, I am not starting Tomcat". Cheers, Kerem > -Original Message- > From: Tuan Quan [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 22, 2005 10:48 PM > To: tomcat-user@jakarta.apache.org > Subject: starting Tomcat service > > In windows, one of my webapp needs to connect to a database > in order to work correctly. > How can I check for oracle database ready before starting > Tomcat service? > Set 'DependOnService' parameter in registry to point to > Oracle db service, may work, but what if the database is on a > different PC? > > thanks > > > > - > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > - Yahoo! for Good Click here to donate to the Hurricane Katrina relief effort.
RE: starting Tomcat service
You may write a shell script which includes a java program to test oracle connectivity and if it can connect, it can be used to start Tomcat. If it fails, it may say "Oracle down, I am not starting Tomcat". Cheers, Kerem > -Original Message- > From: Tuan Quan [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 22, 2005 10:48 PM > To: tomcat-user@jakarta.apache.org > Subject: starting Tomcat service > > In windows, one of my webapp needs to connect to a database > in order to work correctly. > How can I check for oracle database ready before starting > Tomcat service? > Set 'DependOnService' parameter in registry to point to > Oracle db service, may work, but what if the database is on a > different PC? > > thanks > > > > - > Yahoo! for Good > Click here to donate to the Hurricane Katrina relief effort. > smime.p7s Description: S/MIME cryptographic signature