Results 1 to 3 of 3

Thread: JobRepositoryFactoryBean and dataBase

  1. #1
    Join Date
    Jun 2011
    Location
    France
    Posts
    4

    Default 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. #2
    Join Date
    May 2011
    Posts
    18

    Default

    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.

  3. #3
    Join Date
    Jun 2011
    Location
    France
    Posts
    4

    Default

    thanks,

    i have already done that.

    regards.

Posting Permissions

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