stopping a tomcat web application

2006-09-03 Thread asaf.lahav
Hi all, I wrote a ServletContextListener implementation in which I initialize some static classes and objects. I would like to know whether and how it's possible to stop the web application from continuing the start sequence in case something goes wrong in the initialize sequence? I would

Re: stopping a tomcat web application

2006-09-03 Thread Leon Rosenberg
Hmm, I think it's not possible from tomcats view, but you could have a static class, where you store your status, like class Status{ public static boolean continueLoading(){ } } in your servlet you can check whether loading is alowed : public class MyServlet extends HttpServlet{ public void

Starting background thread in contextInitialized ...

2006-09-03 Thread Velja Radenkovic
Hello, I need to periodicaly (12 hrs) check few thousands of database records and to perform some transactions. My first intention was to start a thread in contextInitialized for this purpose. After searching the internet (including this mailing list), I'm in doubt. There are lot of guys saying

Re: Aborting servlet init() method

2006-09-03 Thread Martin Gainty
Runtime.getRuntime().exit(n) But this will exit TOMCAT as well as the VM.. perhaps you can make a startup script which checks for the desired process and then forks depending on found process M- * This email message and any

RE: need help with .startup.sh

2006-09-03 Thread Richard Mixon
Lee, In spite of this appearing to be more of a Linux (FC 4) issue, lets keep it on the list. It might help someone else. I would suggest that you look at the following files for the culprit: ~/.bashrc /etc/bashrc And maybe ~/.profile /etc/profile - Richard -Original Message-

Re: stopping a tomcat web application

2006-09-03 Thread Mikolaj Rydzewski
asaf.lahav wrote: I would like to know whether and how it's possible to stop the web application from continuing the start sequence in case something goes wrong in the initialize sequence? I don't know how this compares to specification, but throwing an exception in contextInitialized()

Re: Starting background thread in contextInitialized ...

2006-09-03 Thread Mikolaj Rydzewski
Velja Radenkovic wrote: What I'm looking for are pros, cons and experiences for implementing ServletContextListener and starting a thread in contextInitialized. Thread neads to perform 1 min processing every 12 hrs. Reliability is most important aspect. Google for MBean timer. You can also

Apache 2.2.3 - Tomcat 5.5.17 - Jk config 2.1.8

2006-09-03 Thread Jim Weir
To all, I have two issues I need to solve. I set up a virtual host and 1- I would like to take away port 8080 so anybody browsing www.mysite.com:8080 couldn't see the Tomcat Admin screen... 2 - I can't see the second virtual host unless I put the directory path after the virual host,

Tomcat 6 release date ?

2006-09-03 Thread KEGan
Hi, Anyone knows when Tomcat 6 is likely to be released ? And what are the new features (nio perhaps ?) ? I cant seems to find any information about it on Tomcat website, but Wrox is planning to release Pro Tomcat 6 in Jan 2007. ~KEGan

RE: Tomcat 6 release date ?

2006-09-03 Thread Richard Mixon
Did you search the list? It was discussed/answered recently. -Original Message- From: KEGan [mailto:[EMAIL PROTECTED] Sent: Sunday, September 03, 2006 8:03 PM To: Tomcat Users List Subject: Tomcat 6 release date ? Hi, Anyone knows when Tomcat 6 is likely to be released ? And what are

Re: Starting background thread in contextInitialized ...

2006-09-03 Thread Darryl Miles
Velja Radenkovic wrote: I need to periodicaly (12 hrs) check few thousands of database records and to perform some transactions. My first intention was to start a thread in contextInitialized for this purpose. After searching the internet (including this mailing list), I'm in doubt. There are