To all the helpful people on this forum,
I've been building a proof-of-concept and up until now I have been using the MapJobRepositoryFactoryBean with success. But now it's time to use an RDBMS, so I created a new Job Repository with the JobRepositoryFactoryBean using an Oracle datasource. Here is what the bean definitions look like:
At first, I got a ClassNotFoundException on a class that lives in xstream.jar. Couldn't figure out why that was needed, but what the heck, it's just a jar, so I added it - let's get this thing working.Code:<bean id="dbJobRepository" class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean"> <property name="databaseType" value="oracle"/> <property name="dataSource" ref="oraDataSource"/> <property name="incrementerFactory" ref="incrementerFactory"/> <property name="transactionManager" ref="oraTransactionManager"/> </bean> <bean id="incrementerFactory" class="org.springframework.batch.item.database.support.DefaultDataFieldMaxValueIncrementerFactory"> <constructor-arg ref="oraDataSource"/> </bean> <bean id="oraTransactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="oraDataSource"/> </bean>
Now I get:
What is the need for these (XML parsing/mapping/marshalling) classes?Code:java.lang.ClassNotFoundException: org.codehaus.jettison.mapped.Configuration
Brian Gardner
Java Architect, Verizon Wireless


Reply With Quote