Taking it to this list also! As you might see from the original mailing
list i'm using ejbdoclet. Looking in the generated LoggerCMP.java file i
see this ejbRemove method:
   public void ejbRemove() throws javax.ejb.RemoveException
   {
      super.ejbRemove();
   }

And this will lead to a call of my ejbRemove() in LoggerBean which is
the one declared with tx Mandatory. Is this the reason that the
container never finds out that i wants a tx to be started?

How are all you others handling this?

/Lennart


-------- Original Message --------
Ämne: How to handle tx when removing
Datum: Wed, 10 Jan 2001 15:40:38 +0100
Från: Lennart Petersson <[EMAIL PROTECTED]>
Företag: Benefit AB
Till: "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>

Hi!
Suppose a CMP bean with default TX set as SUPPORTS. Where/how can i set
TX on the remove methods, i want TX MANDATORY on these methods? Tried to
declare ejbRemove() in the bean as a @remote-method and with
@transaction Mandatory but no success, the bean is still in database?

Snip from ejb-jar.xml:
      <container-transaction>
         <method>
            <ejb-name>Logger</ejb-name>
            <method-name>ejbRemove</method-name>
            <method-intf>Remote</method-intf>
            <method-params>
            </method-params>
         </method>
         <trans-attribute>Mandatory</trans-attribute>
      </container-transaction>

/Lennart
-- 
mailto:[EMAIL PROTECTED]
http://www.benefit.se/english


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
List Help?:          [EMAIL PROTECTED]

Reply via email to