You could throw an exception (of some custom type) siginifying the db is down and configure web.xml to catch that exception.

Or use a filter which know the status of the database. And if the filter detects the database has gone away - it can forward to an error page instead of following the filterChain.

-Tim

Vic Cekvencih wrote:
I have a connection pool w/TC5 (and error-page in web.xml), but sometimes DB is down.

How do I display an error page saying db is down (since some of this is at the container, not war)?

tia,
.V


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to