407976 JDBCSessionIdManager potentially leaves server in bad state after startup

This commit is contained in:
Jan Bartel 2013-05-16 12:18:04 +10:00
parent f10a1d709b
commit 8a1ea2f69c
1 changed files with 11 additions and 17 deletions

View File

@ -516,24 +516,18 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
*/
@Override
public void doStart()
{
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);
}
throws Exception
{
initializeDatabase();
prepareTables();
cleanExpiredSessions();
super.doStart();
if (LOG.isDebugEnabled())
LOG.debug("Scavenging interval = "+getScavengeInterval()+" sec");
_timer=new Timer("JDBCSessionScavenger", true);
setScavengeInterval(getScavengeInterval());
}
/**
* Stop the scavenger.
*/