Results 1 to 4 of 4

Thread: Spring Batch without the job tables

  1. #1
    Join Date
    Jun 2005
    Posts
    8

    Default Spring Batch without the job tables

    Hi, we'd like to use spring batch as a framework for batch processes, however we already have an external system to manage batch job execution, as such we do not need the runtime execution management and all its related tables.

    Provisioning a RDBMS costs money which has to be justified, as such is there anyway to turn of the state/runtime management in spring batch?

  2. #2

    Default

    take a look at Spring Batch Doc : in Memory Jobrepository

    for a complete in Memory configuration, you can combine it with :
    Code:
    org.springframework.batch.core.configuration.support.MapJobRegistry
    org.springframework.batch.support.transaction.ResourcelessTransactionManager

    but the normal configuration works with embedded Databases like HSQLDB, Derby and H2 too

  3. #3
    Join Date
    Mar 2009
    Posts
    19

    Default

    I used following settings to get rid of DB
    HTML Code:
    	<bean id="mapTransactionManager" class="org.springframework.batch.support.transaction.ResourcelessTransactionManager" lazy-init="true">
    	</bean>
    	<bean id="jobRepository"
    		class="org.springframework.batch.core.repository.support.MapJobRepositoryFactoryBean"
    		lazy-init="true" p:transactionManager-ref="mapTransactionManager" autowire-candidate="false" />
    
    	<bean id="jobRegistry"
    		class="org.springframework.batch.core.configuration.support.MapJobRegistry" />
    

  4. #4
    Join Date
    Jun 2005
    Posts
    8

    Default Thanks

    Thanks for the feedback and responses,

    In memory would work, but any way to totally disable the runtime execution state management?

    That would be ideal...

    Thanks again for the tips

Posting Permissions

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