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

  • TransactionAttribute setting

    Hi,

    This is my configuration. I am using Batch 1.1.2
    Code:
        <bean id="TransactionProcessing" parent="simpleJob">
            <property name="steps">
                <list>
                    <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">
                            <list>
                                <ref bean="txItemWriteListener" />
                            </list>
                        </property>
                    </bean>
                </list>
            </prop
    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
Working...
X