can i call setRollbackOnly() in ejbRemove of a bean-managed Entity Bean.?
i have declared the txn attribute as Required in the xml-DD for the remote
interface methods as well as Home-intf methods. but my container complains
that IllegalStateException, bean method not participating in a txn....

how do i check whether my bean is participating in a txn or not, thou i have
declared Required as my txn attribute.



actually, i have an entity bean, that has an object, which is a root of a
tree
of objects. so whenever ejbremove is called on my entity bean, i would call
the delete method on root of the tree, which in turn traverses the tree and
deletes each and every node.
if any of the nodes failes to delete itself, then i throw an user defined
exception. upon catching the exception the ejbRemove has to rollback so that
all deleted nodes are brought back. any suggestions?


thanks
ramji


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to