If one method has application exception what happens to transaction
[B]Question asked by Visitor Techie[/b]
I have 2 stateless session beans called ejb1 and ejb2.
ejb1 has a method called met1.
ejb2 has a method called met2.
met1 of ejb1 is a bean manged transaction.
met2 of ejb2 is a container managed transaction.
if met1 called met2, and if met2 has an application exception, what happens to the transacion?
Re: If one method has application exception what happens to transaction
Exception is thrown, transaction is incomplete
Re: If one method has application exception what happens to transaction
i think in this case the exception shall be thrown by the method and shall be handlled by the ejb container ....... i am not too sure on this better check it out.
Re: If one method has application exception what happens to transaction
since container maintains pool of stateless session beans, if one bean throws application exception container brings one more stateless session bean out of pool to service the request.... if it also throws exception then container will bring another bean out to pool to service the request..