Announcement Announcement Module
Collapse
No announcement yet.
JobRepositoryFactoryBean and dataBase Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JobRepositoryFactoryBean and dataBase

    hey,

    am still new in spring batch and i have some questions hope you can help me with!!

    1-i want to use a JobRepositoryFactoryBean so do i have to create the following tables in the database or it should be created automatically?

    BATCH_JOB_INSTANCE;
    BATCH_JOB_PARAMS;
    BATCH_JOB_EXECUTION;
    BATCH_STEP_EXECUTION;
    BATCH_JOB_EXECUTION_CONTEXT;
    BATCH_STEP_EXECUTION_CONTEXT;

    2-if i should creat them am i supposed to do anything else such as referencing the tables ? or is it just suffisent to give the table prefix attribute ?

    thanks for your help.

  • #2
    The script to create the database tables is in spring-batch-core jar file. You need to create them in your DB.

    2) As with any other application that access a database you need to create your datasource, transaction manager (if you are using hibernate also your sessionFactory). Then for springbatch you need a jobrepository and a joblauncher. Check the online docs for examples on how to configure those.

    Comment


    • #3
      thanks,

      i have already done that.

      regards.

      Comment

      Working...
      X