Results 1 to 2 of 2

Thread: Sybase jobrepository job id generation.

  1. #1
    Join Date
    Jun 2012
    Posts
    16

    Default Sybase jobrepository job id generation.

    Hi,

    I am using the spring batch 2.1.9. The jobRepository is setup using the sybase database. Everything is running fine. But while creation of job-ids the job ids are not in sequential manner. Every day the sequence is prefixes with different number and generating the job ids from one. I want the behaviour to start the sequenece number from 1 and continues by incrementing by 1 for every new job.

    Is any setting at xml level or database level needs to change ?

    The job repository is defined as
    Code:
    	<bean id="jobRepository" init-method=""
    		class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean">
    		<property name="dataSource" ref="dataSource" />
    		<property name="transactionManager" ref="transactionManager" />
    		<property name="isolationLevelForCreate" value="ISOLATION_DEFAULT" />
    		<property name="databaseType" value="sybase" />
    		<property name="tablePrefix" value="BATCH_" />
    		<property name="lobHandler" ref="lobHandler" />
    	</bean>
    and the sequence table definition from jar is

    Code:
    CREATE TABLE BATCH_STEP_EXECUTION_SEQ (ID BIGINT IDENTITY);
    CREATE TABLE BATCH_JOB_EXECUTION_SEQ (ID BIGINT IDENTITY);
    CREATE TABLE BATCH_JOB_SEQ (ID BIGINT IDENTITY);
    Thanks
    Narendra Dhande

  2. #2
    Join Date
    Aug 2012
    Posts
    3

    Default

    I want to generate end of day report about the data loaded into these tables.
    My first initiative here is to explain what Insanity is. Once you get the feel for it the customer insanity reviews will make more sense.

Posting Permissions

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