RE: Re: Destroy an Entity Bean
sudesh kumar <[email protected]> Fri, 5 Apr 2002 08:30:38 +0100 (BST)
| Newsgroups | gmane.comp.java.ejb.general |
|---|---|
| Message-ID | <[email protected]> |
The best way to destroy the instance of the entity bean ( not the bean itself) is to use unsetEntityContext() method Sudesh --- Rajeev Dave <[email protected]> wrote: > If you want to destroy the --instance-- of the bean, > > have a method inside the bean(lets say > destroyBean()) > and simply throw RemoteException (or any non > application exception) > inside the method. If the appserver is > "ejb-compliant", > it should destroy that instance. > > But here you need to judge on transaction boundries > and > all related complexities involved. > > HTH > > -Rajeev Dave > > > --- In EJB-Developer@y..., Nicolas D'Ippolito > <mr_dipi@y...> wrote: > > Hi, I have a problem with the Entity Bean. I need > to > > know how to destroy an EJB, because remove method > > seems to destroy a row from the associated table > > (apparently it needs a key column). > > > > I hope you can help me. Thanks. > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Movies - coverage of the 74th Academy > Awards® > > http://movies.yahoo.com/ > > > > > EJB-Developer group email addresses: > Post message: [email protected] > Subscribe: > [email protected] > Unsubscribe: > [email protected] > List owner: [email protected] > > Our other technical discussion groups: > - For general Java (J2EE) questions/answers: > http://groups.yahoo.com/group/Java_Developer > - For peer-to-peer software development discussion: > http://groups.yahoo.com/group/P2P-Developer > > Web link to the EJB-Developer group: > http://groups.yahoo.com/group/EJB-Developer > > ATTENTION: You are receiving this message because > you actively subscribed to > the EJB-Developer technical discussion group on > Yahoo! Groups. All > subscriptions come from Yahoo-verified email > addresses and are logged, > thereby provable. To unsubscribe, send a blank > email from the email address > receiving group messages to the 'Unsubscribe' email > address shown above. If > this doesn't work, send a message concerning this > problem to > [email protected]. Only Yahoo! Groups is > responsible for their own > subscription services; the moderator will not > perform these services at any > time. > > *** EJB-Developer - A free service brought to you by > Democracy 2.0 > (www.democracy2.org) *** > > Your use of Yahoo! Groups is subject to > http://docs.yahoo.com/info/terms/ > > > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com