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. 
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to