Results 1 to 3 of 3

Thread: Running Spring Batch without a database

  1. #1
    Join Date
    Apr 2008
    Posts
    174

    Question 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!

  2. #2
    Join Date
    Apr 2008
    Posts
    174

    Default

    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!!

  3. #3
    Join Date
    Feb 2008
    Posts
    488

    Default

    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
  •