| | |
| | | /** Name des SQL-Befehls zum Pruefen, ob die Datenbank vorhanden ist */ |
| | | public static final String SQL_DB_VORHANDEN = "dbVorhanden"; |
| | | |
| | | public static final String MP_USER = "userMapper"; |
| | | public static final String MP_USER_DATA = "userDataMapper"; |
| | | public static final String MP_USER_ROLE = "userRoleMapper"; |
| | | |
| | | /** |
| | | * Diese Webanwendung initialisieren, also z.B. Elemente instantiieren, die |
| | | * über den Deployment Descritpor veränderlich gehalten sind. |
| | |
| | | @Override |
| | | public void contextDestroyed(ServletContextEvent sce) { |
| | | // destroy whatever |
| | | ServletContext ctx = sce.getServletContext(); |
| | | ctx.removeAttribute(UserMgr.MP_USER); |
| | | ctx.removeAttribute(UserMgr.MP_USER_DATA); |
| | | ctx.removeAttribute(UserMgr.MP_USER_ROLE); |
| | | ctx.removeAttribute(UserMgr.UM_SQL_PROPERTIES); |
| | | ctx.removeAttribute(UserMgr.UM_DB); |
| | | } |
| | | |
| | | } |