Announcement Announcement Module
Collapse
No announcement yet.
Spring Batch without the job tables Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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" />
      

      Comment


      • #4
        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

        Comment

        Working...
        X