Making specific method non transactional in Spring -


i have spring application based on spring batch. default spring batch introduces transaction steps (i.e. @ reader,writer , processor) . there stages don't need transaction enabled. because transaction enabled unnecessary these methods giving me runtime errors making call 2 different databases in 1 method.

is there annotation spring provides disable transaction specific set of methods ?

or there available in spring batch can allow me rid of transaction either or declarative

i open solution can disable transaction globally. link , paper appreciated. in advance samir

spring batch inherently transactional. if datasources not transactional, semantics of jobrepository require it. closest can spring batch , not being transactional using resourcelesstransactionmanager. transaction manager no-op transaction manager keeps track of if operation within scope of transaction or not.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -