My project has several processes that are been executed each day. The problem I found is that after a job execution, when I execute again the same process (with different job parameters, of course) I see Spring batch generates a new Job instance BUT the variables values remain in memory for the new execution.
How is it possible? New instances don't create new Java instances? Problem configuration?
My JobLoader configuration:
Code:<bean id="jobLoader" class="org.springframework.batch.core.configuration.support.AutomaticJobRegistrar"> <property name="applicationContextFactories"> <bean class="org.springframework.batch.core.configuration.support.ClasspathXmlApplicationContextsFactoryBean"> <property name="resources" value="classpath*:/META-INF/spring/batch/jobs/*.xml" /> </bean> </property> <property name="jobLoader"> <bean class="org.springframework.batch.core.configuration.support.DefaultJobLoader"> <property name="jobRegistry" ref="jobRegistry" /> </bean> </property> </bean>
Thanks,


Reply With Quote
