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
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
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
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
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-
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()
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
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,
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
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
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
11 matches
Mail list logo