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

  • Framework Tables

    Hi,

    I don't need any of the following tables

    1. BATCH_STEP.
    2. BATCH_STEP_EXECUTION.
    3. BATCH_STEP_EXECUTION_CONTEXT.
    4. BATCH_JOB.
    5. BATCH_JOB_INSTANCE.
    6. BATCH_JOB_EXECUTION.
    7. BATCH_JOB_PARAMS.

    is there any way to make the framework work without these tables?

  • #2
    well, it sounds weird...

    Of course you don't need these tables, but Spring Batch needs them.

    You may choose to put them in embeded DBs like HSQL, or even use map job repository if you are sure you don't need those restartable features of Spring Batch.

    Comment


    • #3
      Hi,

      Thanks for the reply.
      I don't need the restartable feature.
      Can you please let me know how to use map job repository?

      Comment


      • #4
        http://static.springframework.org/sp...n.html#d0e3328

        Comment


        • #5
          Lucas,

          Thanks a lot

          Comment


          • #6
            Lucas,

            Thanks a lot

            Code:
              <bean id="jobRepository" class="org.springframework.batch.core.repository.support.SimpleJobRepository">
                <constructor-arg ref="mapJobInstanceDao" />
                <constructor-arg ref="mapJobExecutionDao" />
                <constructor-arg ref="mapJtepExecutionDao" />
              </bean>
            
              <bean id="mapJobInstanceDao"
                    class="org.springframework.batch.execution.repository.dao.MapJobInstanceDao" />
            
              <bean id="mapJobExecutionDao"
                    class="org.springframework.batch.execution.repository.dao.MapJobExecutionDao" />
            
              <bean id="mapStepExecutionDao"
                    class="org.springframework.batch.execution.repository.dao.MapStepExecutionDao" />
            There is a spelling mistake in the above configuration
            <constructor-arg ref="mapJtepExecutionDao" />
            mapStepExecutionDao is given as mapJtepExecutionDao.
            Please change it in http://static.springframework.org/sp...n.html#d0e3328

            Comment


            • #7
              It's a known issue:

              http://jira.springframework.org/browse/BATCH-627

              I forgot about it when passing on the link, sorry about that.

              Comment

              Working...
              X