if (configs != null && configs.size() > 0)
{
log.info("Found " + configs.size() + " Quartz instances in settings file.");
for (int i = 0; i < configs.size(); i++)
{
QuartzConfig config = configs.get(i);
QuartzConnectService quartzConnectService = new QuartzConnectServiceImpl();
QuartzInstance quartzInstance = null;
try
{
quartzInstance = quartzConnectService.initInstance(config);
config.setConnected(true);
}
catch (Throwable t)
{
log.error("Failed to connect! " + config.toString(), t);
}
if (quartzInstance != null)
{
QuartzInstanceService.putQuartzInstance(quartzInstance);