Manual Datasource - Context Unavailable

2004-11-10 Thread Robert
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

RE: Manual Datasource - Context Unavailable

2004-11-10 Thread Shapira, Yoav
Hi, Is there a way to programmatically make the Context unavailable? Not a portable/container-independent way. Instead, write a simple filter that calls YourSingleton.isEverythingOk(), and if the response is negative, redirects the request to a app unavailable page (or throws an exception, or

Manual Datasource - Context Unavailable

2004-11-10 Thread Shapira, Yoav
Hi, Is there a way to programmatically make the Context unavailable? Actually, I'd like to add to my previous message. There *is* at least one portable way to do this. If you initialize your singleton from a ServletContexteListener#contextInitialized method and throw an exception there, the