remove() on entity beans
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Paul_Wheaton
Posted On:   Monday, March 26, 2001 07:16 AM

I know that remove() on a session bean is supposed to tell the EJB server that you are done with the bean and the server can move it back to the pool.

I thought remove() on an Entity bean indicated that you want to delete the persistance of the object (probably delete the row in the table that the entity bean represents).

How do you tell an entity bean that you are done with it, but don't delete the persistance?

Re: remove() on entity beans

Posted By:   Jonas_Bergqvist  
Posted On:   Tuesday, March 27, 2001 12:54 AM

You don't have to. The container manages the swapping
into the instance pool automatically. You only need to tell it when you want
to delete a bean instance. That is the only way remove() works for
the clients using entity beans.



Regards,
Jonas Bergqvist

Re: remove() on entity beans

Posted By:   OBUCHI_MACHINI  
Posted On:   Monday, March 26, 2001 08:03 AM

then u hv todo with his ejbPassivate().
ejbPassivate() precisely does that.. it will be store whatever changes have been made to the entity bean back to the database.
About | Sitemap | Contact