Package org.springframework.batch.core.jsr.configuration.xml

Examples of org.springframework.batch.core.jsr.configuration.xml.JsrXmlApplicationContext.load()


    Resource batchXml = new ClassPathResource("/META-INF/batch.xml");
    Resource jobXml = new ClassPathResource(previousJobExecution.getJobConfigurationName());

    if(batchXml.exists()) {
      batchContext.load(batchXml);
    }

    if(jobXml.exists()) {
      batchContext.load(jobXml);
    }
View Full Code Here


    if(batchXml.exists()) {
      batchContext.load(batchXml);
    }

    if(jobXml.exists()) {
      batchContext.load(jobXml);
    }

    AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.batch.core.jsr.JsrJobContextFactoryBean").getBeanDefinition();
    beanDefinition.setScope(BeanDefinition.SCOPE_SINGLETON);
    batchContext.registerBeanDefinition(JSR_JOB_CONTEXT_BEAN_NAME, beanDefinition);
View Full Code Here

    Resource batchXml = new ClassPathResource("/META-INF/batch.xml");
    String jobConfigurationLocation = "/META-INF/batch-jobs/" + jobName + ".xml";
    Resource jobXml = new ClassPathResource(jobConfigurationLocation);

    if(batchXml.exists()) {
      batchContext.load(batchXml);
    }

    if(jobXml.exists()) {
      batchContext.load(jobXml);
    }
View Full Code Here

    if(batchXml.exists()) {
      batchContext.load(batchXml);
    }

    if(jobXml.exists()) {
      batchContext.load(jobXml);
    }

    AbstractBeanDefinition beanDefinition = BeanDefinitionBuilder.genericBeanDefinition("org.springframework.batch.core.jsr.JsrJobContextFactoryBean").getBeanDefinition();
    beanDefinition.setScope(BeanDefinition.SCOPE_SINGLETON);
    batchContext.registerBeanDefinition(JSR_JOB_CONTEXT_BEAN_NAME, beanDefinition);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.