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
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.