404067 If cannot connect to db fail startup of JDBCSessionIdManager
This commit is contained in:
parent
bfb92dc18b
commit
bcdf071a9c
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue