Package javax.batch.runtime.context

Examples of javax.batch.runtime.context.JobContext


  public void testInitialCreationSingleThreadUsingStepScope() throws Exception {
    factoryBean.setBatchPropertyContext(propertyContext);

    StepSynchronizationManager.register(new StepExecution("step1", new JobExecution(5L)));

    JobContext jobContext = factoryBean.getObject();

    assertEquals(5L, jobContext.getExecutionId());
    StepSynchronizationManager.close();
  }
View Full Code Here


        @Override
        public JobContext call() throws Exception {
          try {
            StepSynchronizationManager.register(new StepExecution("step" + count, new JobExecution(count)));
            JobContext context = factoryBean.getObject();
            Thread.sleep(1000L);
            return context;
          } catch (Throwable ignore) {
            return null;
          }finally {
View Full Code Here

TOP

Related Classes of javax.batch.runtime.context.JobContext

Copyright © 2018 www.massapicom. 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.