Hello All,
I'm facing problem, while creating a new thread/timer inside the Servlet init()
method. In init method i'm loading  text file(s), and updating them in my
servlet context. When i update/change my text file(s) i need to restart my
servlet runner to update the file contents in Servlet Context.
I want to update the file contents without restarting the servlet runner, for
that i tried with Thread/Timer class. For the specified interval it will check
the file status and update the servlet context if there is any change in file.
Otherwise it should return to the main thread.
But once my thread/timer start() begins it's not at all coming back to the main
thread.
I think my thread is running inside the main thread(INIT), and there is no
specific condition to exit/stop my thread, bcoz it should work like demon
process. In this how can i pass the control back to the main thread.

Due to this reason init methd is not getting completed, and i'm not able to run
my servlet. expecting help in this regard.

Thanx in advance..

Regards
G S Sundaram

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to