use of org.archive.spring.PathSharingContext in project Asqatasun by Asqatasun.
the class AsqatasunCrawlJob method startContext.
/**
* Start the context, catching and reporting any BeansExceptions.
*/
private void startContext(CrawlJob crawlJob) {
LOGGER.debug("Starting context");
PathSharingContext ac = crawlJob.getJobContext();
ac.addApplicationListener(this);
try {
ac.start();
} catch (BeansException be) {
LOGGER.warn(be.getMessage());
ac.close();
} catch (Exception e) {
LOGGER.warn(e.getMessage());
try {
ac.close();
} catch (Exception e2) {
e2.printStackTrace(System.err);
} finally {
}
}
LOGGER.debug("Context started");
}
Aggregations