• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Method calling a hanging up method  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
Let's say that EJB A has a method foo()
foo() method speicfies that its transaction time out is 50 seconds.
foo() method calls method baz() of EJB C
baz() method takes more than 50 seconds to finish its job (or it hanged up for some reason).
In this case, will EJB A rolling back the transaction ?
Thanks
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes the transaction will be rolled back, does not matter whether you call a different EJB or a simple POJO or another remote method.
If the method currently under the transaction with the timeout is taking longer than the timeout period, it will rollback.
However, the process that is hung/taking long will continue to run.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!