Results 1 to 2 of 2

Thread: DB Needed ?

Hybrid View

  1. #1
    Join Date
    Aug 2008
    Posts
    1

    Default DB Needed ?

    Hi,

    I am new to Spring and Spring Batch. I am in the process of writing a new batch(My application just needs to read a flat file and create another flat file after processing...) , my application is relatively small and does not have any database.

    I was looking at some presentations on spring batch framework and noticed that Job execution and Step executions are stored in a database.

    I wanted advise from gurus if database is absolutely needed to implement a spring batch framework ?

    Thanks....

  2. #2
    Join Date
    Jul 2008
    Posts
    27

    Default

    Lol, I'm not a guru but just writing my first job as well, but I can tell you how I understand it.

    There's an in-memory repository (based on transactional maps) that you can use instead of a DB (cf. chapter 4.3.2.2 in the reference documentation).

    Of course it means that the information stored there will be lost when the class is destroyed, so you have to see if that fits your use case. If you need to store the information longer for restart purposes you could use an HSQLDB without much effort. That's what they do in the samples.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •