Пример #1
0
 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());
 }
Пример #2
0
 public String getDbInfo() {
   return bibliosManager.getDbInfo();
 }