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

  • TransactionAttribute setting


    This is my configuration. I am using Batch 1.1.2
        <bean id="TransactionProcessing" parent="simpleJob">
            <property name="steps">
                    <bean parent="skipLimitStep">
                        <property name="commitInterval" value="50" />
                        <property name="skipLimit" value="1000"/>
                        <property name="itemReader" ref="txItemReader" />
                        <property name="itemWriter" ref="txItemWriter"/>
                        <property name="transactionAttribute" value="+java.lang.Exception" />
                        <property name="listeners">
                                <ref bean="txItemWriteListener" />
    Item Reader uses JDBCCursorItemReader...I am experiencing a strange behaviour....From what I understand, if I set the transactionAttribute, it skips the item and continues with the next item...I can see that when the ItemWriter throws the Exception, instead of skipping, it goes into some loop and starts processing the batch again....i.e. each item gets processed in a loop (I cant determine if its from the start of the batch)...Can someone pls throw some light on this ? is there any equivalent in Spring 2.0 ?

    Thanks in advance....Vijay