Hi all,
I've got a problem with setting my transaction settings in SpringBatch
For special components, I want to specify a different transaction (actually, no transaction at all).
I've writen this :
And what I see in my log isCode:<aop:config> <aop:pointcut id="transactional" expression="execution(* mypackage.batch.*.*(..))" /> <aop:advisor pointcut-ref="transactional" advice-ref="txAdvice" order="0"/> </aop:config> <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes> <tx:method name="*" propagation="NEVER"/> </tx:attributes> </tx:advice>
So I guess it take in account my configurationCode:Adding transactional method[*] with attribute [PROPAGATION_NEVER,ISOLATION_DEFAULT]
But, I still see this
Code:Creating new transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
I'm new in Spring Batch and in transaction too. So, maybe I'm doing something wrong.
Could you help please ? Thanks.


Reply With Quote
