Hi All,
I have been following recent threads regarding JNDI DataSources and have
decided to create my own singleton class to hold the DataSource and supply
connections as needed as suggested by Yoav. This seems to be working fine.
However, I would like to send a message to tomcat to make the Context
unavailable if it is not possible to create the DataSource. I have tried
throwing an ServletUnavailable Exception which makes the Servlet unavailable
but the context is still available for requests and continues to rack up
errors as the database connection is used in almost every request.
Is there a way to programmatically make the Context unavailable?
Thanks Robert