dcsimg
database calls in ejbpassivate() of entity bean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   durga_rani
Posted On:   Monday, November 18, 2002 04:08 AM

What happens when database calls are included in
ejbPassivate() method of bean managed entity bean.
Does it result in an exception? Or is the database updated as it still has the reference.

Re: database calls in ejbpassivate() of entity bean

Posted By:   Pavan_Keely  
Posted On:   Friday, November 22, 2002 09:15 AM

It's ok to update the database in the ejbPassivate(). The specification doesn't anywhere say that you should not use the database calls in the ejbPassivate. But ejbPassivate() is not for that activity. It is called just before your bean is getting passivated, so need to release the resource in the ejbPassivate.
About | Sitemap | Contact