Hi there,
I'm currenttly using tomcat 5.x for running my webapps. Now I have the
following problem:
I'm using an database system which runs as webapplication inside tomcat.
Another webapplication needs the database connection for startup.
Everytime I restart tomcat the server doesn't get up,
This question comes up every so often and the answer is always no. The
webapp load order cannot be relied upon. In your case, might I suggest
the database webapp be run on a separate instance of tomcat? Can the
connection be done via TCP/IP?
--David
SOA Work wrote:
Hi there,
I'm
A couple of other ideas:
Use a small shared class (in shared/lib) to keep track of whether the
database is running. The first webapp notifies this class when it's
ready, and the second webapp checks if the database is ready before
using it.
Or, just accept that database errors will occur during
argh. annoying.
ok. thx anyway.
-Ursprüngliche Nachricht-
Von: Tomcat Users List users@tomcat.apache.org
Gesendet: 24.04.06 17:57:49
An: Tomcat Users List users@tomcat.apache.org
Betreff: Re: is there a possibility to define the startup order for webapps?
A couple of other ideas:
One could envision a rather complex and somewhat funky solution to
this... I'm not so sure I'd recommend it, but in the interest of
creative thinking...
(1) Add a context parameter isAppRunning to the webapp, initially set to
false.
(2) Create a filter that is mapped to handle all requests.
I believe that the loading of webapps is based on the order of the
webapp folders (or war files) coming into the purview of the tomcat
webapp loader. This is mostly in the order the OS lists the
files/folders within the webapps folder.
I think you can experiment with changing the name of the
From: Vivek Mohan [mailto:[EMAIL PROTECTED]
Subject: Re: is there a possibility to define the startup
order for webapps?
I believe that the loading of webapps is based on the order of the
webapp folders (or war files) coming into the purview of the tomcat
webapp loader.
Which may be
On Mon, Apr 24, 2006 at 11:20:54AM -0400, David Smith wrote:
This question comes up every so often and the answer is always no. The
webapp load order cannot be relied upon. In your case, might I suggest
the database webapp be run on a separate instance of tomcat? Can the
connection be done
It defines the order of servlet startup, if pre-loaded/pre-started at all,
when the webapp actually starts. It does not affect the order in which the
webapps themselves are loaded and/or started.
Tim
-Original Message-
From: Eric Haszlakiewicz [mailto:[EMAIL PROTECTED]
Sent: Monday,
As pointed out by another, load-on-startup only refers to servlets
within a specific webapp. It does not have any influence over the load
order of web applications themselves.
--David
Eric Haszlakiewicz wrote:
On Mon, Apr 24, 2006 at 11:20:54AM -0400, David Smith wrote:
This question
10 matches
Mail list logo