You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pedro Rodrigo Cardiel <pr...@unizar.es> on 2010/10/28 16:25:11 UTC

Late start of context

Hello,

I need that when tomcat starts, some applications may not start until
after a certain time (delay). For example: The application A starts
after 20. minutes

I've searched but nothing found

Does anyone know if this is possible?

Greetings and thanks

-- 
------------------------------------------------------------------------------------------------------------------
Pedro Rodrigo Cardiel
Dpto. de Informática e Ingenierí­a de Sistemas - Universidad de Zaragoza
C/ Marí­a de Luna 1, 50018 Zaragoza, Spain
Tel:    +34 976 762134
e-mail: prodrig@unizar.es

Grupo IAAA - http://iaaa.cps.unizar.es
------------------------------------------------------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Late start of context

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pedro Rodrigo Cardiel [mailto:prodrig@unizar.es] 
> Subject: RE: Late start of context


> The thing is that there are several heavy applications (the 
> tomcat I have to throw with 2.7 GB of memory) that usually 
> start badly. But if I re-launched by hand one by one then 
> they are loaded properly.

I think your time would be better spent fixing the startup bugs in the webapps rather than attacking the symptom.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


Re: Late start of context

Posted by David kerber <dc...@verizon.net>.
On 10/28/2010 11:04 AM, Pedro Rodrigo Cardiel wrote:
> El jue, 28-10-2010 a las 09:46 -0500, Caldarale, Charles R escribió:
>
>> What do you expect to happen when requests arrive for the non-started webapp during the delay period?
>
>
> Tomcat returns the same as when you stop an application
>
>
>> Generally, any synchronization with external events that the webapp may require is entirely the responsibility of the webapp.  You can possibly achieve what you want with some external script that interfaces with the Tomcat manager app (text, not GUI, version) to start and stop a webapp.
>
>
>
> The thing is that there are several heavy applications (the tomcat I
> have to throw with 2.7 GB of memory) that usually start badly. But if I
> re-launched by hand one by one then they are loaded properly.  So I want
> to put time between tomcat start an application and again tomcat.

In that case, you might consider writing a simple app that uses timers 
to sequence the startup and shutdown of your various apps.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Late start of context

Posted by Pedro Rodrigo Cardiel <pr...@unizar.es>.
El jue, 28-10-2010 a las 09:46 -0500, Caldarale, Charles R escribió: 

> What do you expect to happen when requests arrive for the non-started webapp during the delay period?


Tomcat returns the same as when you stop an application


> Generally, any synchronization with external events that the webapp may require is entirely the responsibility of the webapp.  You can possibly achieve what you want with some external script that interfaces with the Tomcat manager app (text, not GUI, version) to start and stop a webapp.



The thing is that there are several heavy applications (the tomcat I
have to throw with 2.7 GB of memory) that usually start badly. But if I
re-launched by hand one by one then they are loaded properly.  So I want
to put time between tomcat start an application and again tomcat.


-- 
------------------------------------------------------------------------------------------------------------------
Pedro Rodrigo Cardiel
Dpto. de Informática e Ingenierí­a de Sistemas - Universidad de Zaragoza
C/ Marí­a de Luna 1, 50018 Zaragoza, Spain
Tel:    +34 976 762134
e-mail: prodrig@unizar.es

Grupo IAAA - http://iaaa.cps.unizar.es
------------------------------------------------------------------------------------------------------------------


RE: Late start of context

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Pedro Rodrigo Cardiel [mailto:prodrig@unizar.es] 
> Subject: Late start of context

> I need that when tomcat starts, some applications may not 
> start until after a certain time (delay).

What do you expect to happen when requests arrive for the non-started webapp during the delay period?

Generally, any synchronization with external events that the webapp may require is entirely the responsibility of the webapp.  You can possibly achieve what you want with some external script that interfaces with the Tomcat manager app (text, not GUI, version) to start and stop a webapp.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.