According to  EJB 1.1 specifications 11.6.3 section that is as follows:

11.6.3 Handling of methods that run with �an unspecified transaction context�

The term �an unspecified transaction context� is used in the EJB specification
to refer to the cases in
which the EJB architecture does not fully define the transaction semantics of an
enterprise bean method
execution.
This includes the following cases:
  The execution of a method of an enterprise bean with container-managed
transaction demarca-tion
for which the value of the transaction attribute is NotSupported,
Never,orSup-ports
  The execution of the ejbCreate, ejbRemove, ejbPassivate, and ejbActivate
methods of a session bean with container-managed transaction demarcation.

The EJB specification does not prescribe how the Container should manage the
execution of a method
with an unspecified transaction context�the transaction semantics are left to
the Container implemen-tation.

The container that you are using might not be executing ejbRemove() method in
the Transaction Context.



Ram Ji wrote:

> 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".
begin:vcard
n:Umbarje;Manisha
tel;cell:(206)-898-9926
tel;work:(206)-674-0070
x-mozilla-html:FALSE
org:EpicEdge
version:2.1
email;internet:[EMAIL PROTECTED]
title:Sr. Java Developer
adr;quoted-printable:;;5701 6thAve South,=0D=0ASuite No - 503=0D=0ASeattle WA 98108;;;;
fn:Manisha Umbarje
end:vcard

Reply via email to