Notice that server life cycle listeners normally work in the server context,
and not in a war file class loader. This may cause some problems for code in
the war file accessing the objects that were created by the listener.
Something else that you should consider in tomcat 5.x versions is the
Looks like the Server Life Cycle Listener will not work for the scenario I
am looking for.
On Fri, Oct 23, 2009 at 1:47 AM, Elli Albek e...@sustainlane.com wrote:
Notice that server life cycle listeners normally work in the server
context, and not in a war file class loader. This may cause
Where does the code that needs to know that reside? How is it initialized? Is
it inside tomcat (war file, valve, JNDI resource) or outside the tomcat JVM?
E
- Original Message -
From: Anup K Ram anupk...@gmail.com
To: users@tomcat.apache.org
Sent: Wed, 21 Oct 2009 16:56:50 -0700 (PDT)
From: Anup K Ram anupk...@gmail.com
To: users@tomcat.apache.org
Sent: 22/10/09, 00:56:50
Subject: How to know when tomcat is ready to serve request
Hi,
Is there a way to know whether tomcat is started successfully and ready to
serve requests? I need to know this programmatically.
Use a
Its inside the war file.
On Wed, Oct 21, 2009 at 11:53 PM, Elli Albek e...@sustainlane.com wrote:
Where does the code that needs to know that reside? How is it initialized?
Is it inside tomcat (war file, valve, JNDI resource) or outside the tomcat
JVM?
E
- Original Message -
Anup K Ram wrote:
Its inside the war file.
Take a look at the contextInitialized event of the
ServletContextListener interface:
package myPackage;
import javax.servlet.ServletContext;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import
The code is in a thread thats in turn spawned from the contextInitilized
method of a ServletContextListener.(Inside the war)
On Wed, Oct 21, 2009 at 11:53 PM, Elli Albek e...@sustainlane.com wrote:
Where does the code that needs to know that reside? How is it initialized?
Is it inside tomcat
- Original Message -
From: David kerber dcker...@verizon.net
To: Tomcat Users List users@tomcat.apache.org
Sent: Thu Oct 22 12:31:34 2009
Subject: Re: How to know when tomcat is ready to serve request
Anup K Ram wrote:
Its inside the war file.
Take a look at the contextInitialized
- Original Message -
From: David kerber dcker...@verizon.net
To: Tomcat Users List users@tomcat.apache.org
Sent: Thu Oct 22 12:31:34 2009
Subject: Re: How to know when tomcat is ready to serve request
Anup K Ram wrote:
Its inside the war file.
Take a look at the contextInitialized
If this is the case you can assume that the war file is deployed.
I don't trust the code of the tomcat startup/shutdown. If you want to be 100%
safe use a server lifecytle listener. This is limited to a server that has the
same apps, meaning you are not adding/removing/replacing applications on
My problem here is I want to wake up the thread after the server is
completely started. I have not used Server LifeCycleListener before. I will
give it a try. Appreciate any help. Thanks.
On Thu, Oct 22, 2009 at 7:48 PM, Elli Albek e...@sustainlane.com wrote:
If this is the case you can assume
Hi,
Is there a way to know whether tomcat is started successfully and ready to
serve requests? I need to know this programmatically.
Thanks In Advance.
12 matches
Mail list logo