public void destroy() { if( null != connections ) { connections.closeAllConnections(); } }
public UserRepositoryDb(ServletContext servletContext) throws ServletException { connections = JdbcConnections.connectionsFromServletContext(servletContext); try { connection = connections.getDb(); } catch (Exception e) { throw new ServletException("Unable to get default DB from connections",e); } }
public void init(ServletConfig config) throws ServletException { super.init(config); connections = JdbcConnections.connectionsFromServletContext(config.getServletContext()); }
con = connections.getDb(dbs[0]); } catch (Exception e) { throw new ServletException("Error while connecting to database ("+dbs[0]+")",e);
public void init(ServletConfig config) throws ServletException { super.init(config); try { connections = JdbcConnections.connectionsFromServletContext(config.getServletContext()); connection = connections.getDb(); } catch (Exception e) { throw new ServletException("Error while connecting to database",e); } queries = new AdhocQueries(connection); }
public void destroy() { connections.closeAllConnections(); }
public void init(ServletConfig config) throws ServletException { super.init(config); try { connections = JdbcConnections.connectionsFromServletContext(config.getServletContext()); connection = connections.getDb(); } catch (Exception e) { throw new ServletException("Error while connecting to database",e); } dbSecurity = new DbSecurity(connection); }
public void destroy() { connections.closeAllConnections(); } }
public void init(ServletConfig config) throws ServletException { super.init(config); ServletContext servletContext = config.getServletContext(); try { connections = JdbcConnections.connectionsFromServletContext(servletContext); connection = connections.getDb(); } catch (Exception e) { throw new ServletException("Error while connecting to database",e); } // Load up configuration information Properties props = new Properties(); { if( null != servletContext ) { Object propertiesObj = servletContext.getAttribute(PROPERTIES_SERVLET_ATTRIB_NAME); if( null != propertiesObj && propertiesObj instanceof Properties ) { props = (Properties)propertiesObj; } } } searches = new Searches(props,connection); }
public void destroy() { connections.closeAllConnections(); }
public void init(ServletConfig config) throws ServletException { super.init(config); try { connections = JdbcConnections.connectionsFromServletContext(config.getServletContext()); connection = connections.getDb(); } catch (Exception e) { throw new ServletException("Error while connecting to database",e); } userRepository = UserRepositorySingleton.getSingleton(); contributions = ContributionsUtils.createContibutionHandler(config.getServletContext(), connection); if (null == contributions) { return; } try { ContributionComet contComet = new ContributionCometImpl(config.getServletContext()); contributions.setContributionComet( contComet ); } catch(Exception e) { logger.error("Comet not available for contributions", e); } }
public void destroy() { connections.closeAllConnections(); }
public void destroy() { connections.closeAllConnections(); }