DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Thomas has posted 33 posts at DZone. View Full User Profile

Spring Batch Job Repository Configuration For Oracle And JBoss

04.23.2012
| 5980 views |
  • submit to reddit
        
<bean id="jobRepository" class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean">
 <property name="dataSource" ref="dataSource" />
 <property name="transactionManager" ref="jobTransactionManager" />
 <property name="isolationLevelForCreate" value="ISOLATION_READ_COMMITTED" />
 <property name="lobHandler">
  <bean class="org.springframework.jdbc.support.lob.OracleLobHandler">
   <property name="nativeJdbcExtractor">
    <bean class="org.springframework.jdbc.support.nativejdbc.JBossNativeJdbcExtractor"/>
   </property>
  </bean>
 </property>
</bean>