java - Spring Batch Transaction Exception:Existing transaction detected in JobRepository -
i trying , exception: java.lang.illegalstateexception: existing transaction detected in jobrepository. please fix , try again (e.g. remove @transactional annotations client).
is there have encountered problem?
@transactional(propagation = propagation.required) public void method1() // method must transactional { ... /*code call jms services*/ method2(); } @transactional(propagation = propagation.not_supported) public void method2() { batchservice.runjobwithid(123l); }
try removing @transactional(propagation = propagation.not_supported)
method2()
Comments
Post a Comment