If I had undestood well, you want to invoke a servlet from within your
own web-app during initialization, to do some data pre-generation.
What about isolating the logic of your "event management" in a helper
class? This way you could call its methods from within your
ServletContextListener with
t" <[EMAIL PROTECTED]>
16/02/2004 14:26
Veuillez répondre à "Tomcat Users List"
Pour : "Tomcat Users List" <[EMAIL PROTECTED]>
cc :
Objet : RE: How to know when Tomcat has completed startup?
What about using a session listener.
Why
Jose,
James, do you need the servlets to be already initialized???
Yes, and they are all defined in web.xml.
The timer servlet that processes the calendars is the last to load.
Another thing to consider is that the connector between Tomcat and Apache is also set up. Because Tomcat and Apache may b
On Mon, Feb 16, 2004 at 03:44:53PM +, James Neville wrote:
>
> Cancel that - this is called *before* any of the servlets are initialised :(
> Any better ideas?
>
James, do you need the servlets to be already initialized???
Because Tomcat can be completly set up, and still none of the servle
16:44
Veuillez répondre à "Tomcat Users List"
Pour : Tomcat Users List <[EMAIL PROTECTED]>
cc :
Objet : Re: How to know when Tomcat has completed startup?
Cancel that - this is called *before* any of the servlets are initialised
:(
Any better ideas?
Cancel that - this is called *before* any of the servlets are initialised :(
Any better ideas?
James Neville wrote:
contextInitialized is what I needed :)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
[EMAIL PROTECTED] wrote:
if your application is a struts one, you can do that with
struts plugin mechanism.
we actually *are* using Struts
i'm intrigued as to how you would propose to do this in Struts...
Regards,
James.
-
T
Thanks to all who replied.
Solved here - even with an example ;)
http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.html?page=2
|contextInitialized is what I needed :)
|I'll call my startup method when I know the whole ServletContext has
been initialised.
Cheers,
James.
-
4 14:26
Veuillez répondre à "Tomcat Users List"
Pour : "Tomcat Users List" <[EMAIL PROTECTED]>
cc :
Objet : RE: How to know when Tomcat has completed startup?
What about using a session listener.
Why not call your method in the constructor fo
What about using a session listener.
Why not call your method in the constructor for the SessionListsner
Pete
-Original Message-
From: James Neville [mailto:[EMAIL PROTECTED]
Sent: 16 February 2004 12:38
To: [EMAIL PROTECTED]
Subject: How to know when Tomcat has completed startup?
Hi
Hi all,
I'm trying to get a certain method within my startup class to *only*
execute after Tomcat startup has fully completed.
I understand I can implement a LifecycleListener, but there only seems
to be before/after start/stop events.
(i'm not sure that Lifecycle.AFTER_START_EVENT refers to 's
11 matches
Mail list logo