I have an existing batch admin project and I want to add Batch Admin. I haven't found any guides on how to integrate admin with already working batch project, only few lines of advice at the admin project homepage. I copied three admin jar's into existing project's WEB-INF/lib folder, added servlet definiton into web.xml and "resourceService" bean into applicationContext.xml. Problem is that my current batch application doesn't use batch properties files at all, instead it uses JNDI:
And when i run my application with admin support it says:Code:<jee:jndi-lookup id="batchDataSource" jndi-name="BatchDB" resource-ref="true" /> <bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> <property name="dataSource" ref="batchDataSource" /> </bean>
No suprise, because I havent defined such properties, because I don't need them. Do I really need to define my database in batch properties values or is there any better solution. I rather avoid batch.properties.
Invalid bean definition with name 'dataSource' defined in "/content/ecl-local.war/WEB-INF/lib/spring-batch-admin-manager-1.2.1.RELEASE.jar/META-INF/spring/batch/bootstrap/manager/data-source-context.xml": Could not resolve placeholder 'batch.jdbc.driver' in string value "${batch.jdbc.driver}"


Reply With Quote
