407976 JDBCSessionIdManager potentially leaves server in bad state after startup
This commit is contained in:
parent
f10a1d709b
commit
8a1ea2f69c
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue