Results 1 to 3 of 3

Thread: Spring Batch Admin - Not possible to change the datasource to Derby

  1. #1
    Join Date
    Jan 2008
    Posts
    7

    Question Spring Batch Admin - Not possible to change the datasource to Derby

    Hi,

    I am trying to change the data-source of Spring Batch Admin to a Derby repository. The jobs will get executed from external and I only want the Admin GUI to present what is in the batch table repositories.

    Without success I am trying to change the default HSQLDB data-source to point to Derby.

    Obviously I am missing something. This is what I did:

    1. I generated the sample batch admin using Eclipse STS from the template.

    2. I removed the batch and servlet folders from the src/main/resources/META-INF. My jobs will be externally executed by another spring batch instance.

    3. I removed batch-hsqldb.properties file from META-INF.

    4. I placed the new data-source-context.xml with the correct derby configurations inside src/main/resources/META-INF/spring/bach/override

    Doing the previous steps the application is still connecting to HSQLDB.
    Is there anything I did wrong?

    Thanks,
    Doru

  2. #2

    Default

    Hi,

    I think 3. is the wrong step. In documentation http://static.springsource.org/sprin...nment_Settings they write you should not remove the file but just replace with the one of your DB type. Don't forget to set batch.data.source.init=false to make sure you db is not cleaned at startup.

  3. #3
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    Other ideas. At step 4: check the spelling of the directory (maybe a typo in the forum post?); check that it is in the WAR deployed on your server; check that the DataSource bean has the same id as the one you are trying to override ("dataSource").

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
  •