ServletContext ctx = sce.getServletContext();
Object obj = ctx.getAttribute( "hsqldb-starter-bean" ); //$NON-NLS-1$
if ( obj != null ) {
logger.debug( "Context listener stopping Embedded HSQLDB" ); //$NON-NLS-1$
HsqlDatabaseStarterBean starterBean = (HsqlDatabaseStarterBean) obj;
starterBean.stop();
}
}
private Map<String, String> getDatabases( ServletContext ctx ) {
HashMap<String, String> map = new LinkedHashMap<String, String>();