************* @ line "dHome.remove("1000");" i'm getting following exception: ******** javax.transaction.TransactionRolledbackException: EJB Exception: : javax.ejb.NoSuchEntityException: [EJB:010142]Instance of EJB 'DepartmentBean' with primary key '1000' does not exist. ********* My client hasn't started txn.(if the client has started txn i shd get TransactionRolledbackException). As per EJB2.0 spec(p376 and p375) i shd get RemoteException(Not the RemoveExcpetion).Even with trans-attribute as "RequiresNew" im getting javax.transaction.TransactionRolledbackException
hi, when u call localHome.remove() method in the seesion bean remote obj, the container will call ejbRemove()[if its SFSB] on the bean instance.If an exception happens during the removal of the bean instance it will throw RemoteException to the client. if the bean instance is running in client txn, in order to give the client more info, container will throw TxnRolledbackException. This is only applicable to container callbacks corresponding to the methods in home intf.