public class AdminUserListener implements ServletContextListener {
public void contextInitialized(ServletContextEvent servletContextEvent) {
try {
String screenname = "admin", password = "admin";
AdminUser adminUser = new AdminUser(screenname, password);
UserDBMgr.setAdminUserBySN(adminUser);
} catch (Exception e) {
e.printStackTrace();
}
}