-
Feb 25th, 2009, 09:26 AM
#1
Running Spring Batch without a database
Hello All,
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"
abstract="true">
mandatest me to have the transactionManager defined (which requires dataSource to be defined).
Any clue?
Thanks!
-
Feb 25th, 2009, 09:52 AM
#2
Here is the answer, user resourceless transaction manager:
<bean id="transactionManager" class="org.springframework.batch.support.transacti on.ResourcelessTransactionManager" lazy-init="true">
</bean>
I hope this is correct!!
-
Feb 25th, 2009, 10:14 AM
#3
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules