public EmmaBiblioJOB() { ac = new ClassPathXmlApplicationContext( "/jobApplicationContext.xml"); // Get job application context. messages = (ReloadableResourceBundleMessageSource) ac.getBean("messageSource"); // Get message resource file. jdbcTemplate = (JdbcTemplate) ac.getBean("jdbcTemplate"); // Get JdbcTemplate. jdbcTran = (PlatformTransactionManager) ac.getBean("transactionManager"); // Get JdbcTransactionManager. bibliosManager = new BibliosManager(); validator = new EmmaBiblioValidator(); logger.info(bibliosManager.getDbInfo()); }
public String getDbInfo() { return bibliosManager.getDbInfo(); }