Spring / Spring batch Interview questions
Can we configure Spring Batch without persisting metadata to database?
Yes, it is configurable. We need to use MapJobRepositoryFactoryBean and ResourcelessTransactionManager.
<bean id="appTransactionManager" class="org.springframework.batch.support.transaction.ResourcelessTransactionManager" /> <bean id="appJobRepository" class="org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean"> <property name="transactionManager" ref="transactionManager" /> </bean> <bean id="appJobLauncher" class="org.springframework.batch.core.launch.support.SimpleJobLauncher"> <property name="jobRepository" ref="appJobRepository" /> </bean>
More Related questions...