Hi Guys,
Can someone plss explain this scenario,
My target is to replicate how to correct errors and recall the
ejb without discarding
There are 3 SLSBs named SlsbOne,SlsbTwo and SlsbThree,
SlsbThree is a bean managed tx,
Other 2 has Required tx attribute.
SlsbOne has 2 methods one throws unchecked application exception marked for rollback and other doesnt.
SlsbThree calles SlsbTwo.
SlsbTwo first calls SlsbOne's app exp throwing method in try block and in catch block calls the SlsbOne's plain method (That is, in an error i correct and recall)
I presumed in above scenario, I should not get any exception in SlsbThree and there should not be any bean discarding
But I get EJBException. It opens 2 doubts
1. Why I get exceptions, Since I have caught exception in SlsbTwo
2. Why I get EJBException instead of EJBRolledBackException in SlsbThree. (All are in same transaction created by SlsbThree)
And both SlsbTwo and SlsbThree have been discarded
Please help
Thank
Cham
[ November 08, 2008: Message edited by: Chaminda Amarasinghe ]
[ November 08, 2008: Message edited by: Chaminda Amarasinghe ]