tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Feature request: "fullstart" command
Date Thu, 16 Jun 2011 13:01:29 GMT
2011/6/16 Francis GALIEGUE <fge@one2team.com>:
> On Thu, Jun 16, 2011 at 14:48, Konstantin Kolinko
> <knst.kolinko@gmail.com> wrote:
> [...]
>>
>> Some resources are allocated only on the first access.
>>
>> E.g. starting servlets, or obtaining database connections from a pool.
>> Unless you obtain a connection there is no knowing that the database
>> is accessible.
>>
>
> I know that. Some initialization phases, though, _do_ (or, if not,
> should) raise errors on deployment, and right now I have no way to
> catch such errors at startup time. And I'm not talking about
> connectors here. I did learn one thing though, about that
> EXIT_ON_FAILURE option: it should have been the default as far as I'm
> concerned, but ohwell...
>
>
> Again, connectors are one part of the problem here (I use
> EXIT_ON_FAILURE now on my deployments). But application deployment is
> another. Unless there is some hidden meaning to a Connector which I
> haven't understood.
>

Implement what you want in a listener. Throw an Error if whatever you
want fails.

Best regards,
Konstantin Kolinko

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


Mime
View raw message