JobScheduler scheduler = null;
try {
scheduler = (JobScheduler) m_serviceManager.lookup(JobScheduler.ROLE);
Date executionTime = new Date(System.currentTimeMillis() + configuration.getAutoReconnectDelay());
ReconnectionJob job = new ReconnectionJob(this, configuration);
scheduler.fireJobAt(executionTime, "reconnect_" + configuration.getName(), job);
}
catch (ServiceException e) {
if (getLogger().isWarnEnabled()) {
getLogger().warn("Cannot obtain scheduler.",e);
}