You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by deepak suldhal <de...@yahoo.com> on 2005/03/10 00:31:12 UTC

file watcher

Hi,
   I need to keep a file watcher program running.
Is it possible for me to start this automatically when

tomcat is hosted.

Thanks
D


	
		
__________________________________ 
Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: file watcher

Posted by Antony Paul <an...@gmail.com>.
What you mean ?. You need a file watcher program or you have one.
To start it when tomcat is started, 
1. If it is servlet in web.xml use <load-on-startup> in servlet
declaration and run it from init() method.
2. Write a ContextListener and start it from there.

rgds
Antony Paul 


On Wed, 9 Mar 2005 15:31:12 -0800 (PST), deepak suldhal
<de...@yahoo.com> wrote:
> Hi,
>    I need to keep a file watcher program running.
> Is it possible for me to start this automatically when
> 
> tomcat is hosted.
> 
> Thanks
> D
> 
> __________________________________
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> http://birthday.yahoo.com/netrospective/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org