Thursday, April 23, 2015

Spring Batch- Creating Job Repository,Job Launcher Configuration - With Out DB

1:11 PM - By Manu 0

<batch:job id="simpleJob"
job-repository="jobRepository" restartable="true" abstract="true">
<batch:listeners/>
</batch:job>


<!-- Repository and Launcher -->
<bean id="jobLauncher"
class="org.springframework.batch.core.launch.support.SimpleJobLauncher">
<property name="jobRepository" ref="jobRepository" />
</bean>

<!-- Job Repository configuration this is important and must -->
<bean id="jobRepository"
    class="org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean">
    <property name="transactionManager" ref="transactionManager" />
</bean>



<bean id="transactionManager"
class="org.springframework.batch.support.transaction.ResourcelessTransactionManager">
</bean>

</beans>

Share This Post

0 comments:

Feel Free to Share your Feeling about these content

© 2014 GSDUNIA. WP Theme-junkie converted by Bloggertheme9
Powered by Blogger.
back to top