My Servlet 2.3 webapp has a ServletContextListener which does some initial
setup for my database (connection pools, etc). Having established a
connection, I now want it to ask the database which version of the schema
it's running and compare that to the version of the webapp itself (stored
as a context init parameter). The idea is to refuse to run unless the
server and database versions match. This part is easy. The problem is that
I can't return an error condition since contextInitialized() returns void,
and I can't throw a checked exception because the interface isn't declared
to do so ... am I missing something? How can I shut down, presumably with
some sensible message to the log file, on such a mismatch?
Thanks,
MB
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]