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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -