From bcdf071a9c6ba845b508f1f6789167029c1fab23 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Fri, 22 Mar 2013 10:00:05 +1100 Subject: [PATCH] 404067 If cannot connect to db fail startup of JDBCSessionIdManager --- .../server/session/JDBCSessionIdManager.java | 24 +++++++------------ 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionIdManager.java b/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionIdManager.java index 44f5620e43f..c5cb56fd9fb 100644 --- a/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionIdManager.java +++ b/jetty-server/src/main/java/org/eclipse/jetty/server/session/JDBCSessionIdManager.java @@ -568,22 +568,16 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager */ @Override public void doStart() + throws Exception { - try - { - initializeDatabase(); - prepareTables(); - cleanExpiredSessions(); - super.doStart(); - if (LOG.isDebugEnabled()) - LOG.debug("Scavenging interval = "+getScavengeInterval()+" sec"); - _timer=new Timer("JDBCSessionScavenger", true); - setScavengeInterval(getScavengeInterval()); - } - catch (Exception e) - { - LOG.warn("Problem initialising JettySessionIds table", e); - } + initializeDatabase(); + prepareTables(); + cleanExpiredSessions(); + super.doStart(); + if (LOG.isDebugEnabled()) + LOG.debug("Scavenging interval = "+getScavengeInterval()+" sec"); + _timer=new Timer("JDBCSessionScavenger", true); + setScavengeInterval(getScavengeInterval()); } /**