Feb 25th, 2009, 09:26 AM
Running Spring Batch without a database
Just curious to know whether I can run spring batch (in memory) without any database. For ex. if I just need to process files I do not need to have any database connection but simpleStep in the sample,
<bean id="simpleStep" class="org.springframework.batch.core.step.item.Si mpleStepFactoryBean"
mandatest me to have the transactionManager defined (which requires dataSource to be defined).
Feb 25th, 2009, 09:52 AM
Here is the answer, user resourceless transaction manager:
<bean id="transactionManager" class="org.springframework.batch.support.transacti on.ResourcelessTransactionManager" lazy-init="true">
I hope this is correct!!
Feb 25th, 2009, 10:14 AM
If you don't want to persist to database, you might just want to use the in-memory database hsqldb, which is what we use for unit tests.