S
scotty7676
Hey all, had a quick question about the setup in the Subject and
threading in Java. I have a servlet that runs it's own thread using
TimerTask running in tomcat. The problem is, when I go into the tomcat
manager and restart the specific context, the existing thread continues
to run, but then starts a new one also. I know it is still running
because this thread sends me an email once a day. So if I restart the
instance 3 times, I get 3 emails at once. Now get this....it will not
end the threads even when restarting the tomcat server. I actually
have to reboot the server to shut off these runaway threads.
Second issue I have is when I change the web.xml file within my context
(i.e. to add a new servlet definition), and restart the context, it
will not pick up the new web.xml unless I restart tomcat.
Neither one of these issues occur on a 32-bit Xeon Linux server running
an exact copy of tomcat.
Any ideas or has anyone else experience problems like this?
Thanks!
Scott
threading in Java. I have a servlet that runs it's own thread using
TimerTask running in tomcat. The problem is, when I go into the tomcat
manager and restart the specific context, the existing thread continues
to run, but then starts a new one also. I know it is still running
because this thread sends me an email once a day. So if I restart the
instance 3 times, I get 3 emails at once. Now get this....it will not
end the threads even when restarting the tomcat server. I actually
have to reboot the server to shut off these runaway threads.
Second issue I have is when I change the web.xml file within my context
(i.e. to add a new servlet definition), and restart the context, it
will not pick up the new web.xml unless I restart tomcat.
Neither one of these issues occur on a 32-bit Xeon Linux server running
an exact copy of tomcat.
Any ideas or has anyone else experience problems like this?
Thanks!
Scott