• Post Reply Bookmark Topic Watch Topic
  • New Topic

jta transaction spanning across recrusive call of statless ejb session?  RSS feed

 
Elhanan Maayan
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi..

it is possible for a jta transaction to begin on a statless session ejb's method (spec 2.1) and continue in a second call of the same method (meaning it's being called recursivlly from the first ejb invocation).

i'm talking about BMT, is there a difference in CMT?
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36457
460
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is your transaction setting? If it's "required", the existing transaction would continue.
 
Elhanan Maayan
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it is required.

first of all we are using spring templarte, the basic behaviour i described also happens witout it.

but it gets stranger, if we remove the ejb call and try the use a regular class. (the class is called from jbpm engine) in a certain point if we call spring template again if works fine. however if we call the spring template the 3d time at some point in the code (still not under any additional ejb) it ... also works fine (meaning it won't open another transaction but continue the original one).


but if we drop the 2nd call to spring template the 3rd call (which now becomds the second off course) starts a new transaction, i have no idea what could trigger this, or if this is a problem with jta, jboss,spring or jbpm, or all.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!