Mostly ejbload is called at the begining of the tx and ejb store is called at the end of the tx. It may also be called other times if container feels the need to synchronise the state with DB. Ejbload loads the state from the database to make sure that you are(business fn) operates on latest values from the DB.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cheers Ashwani Kalra http://www.geocities.com/ashwani_kalra/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Ashwani Kalra ----- Original Message ----- From: "Kesav, Ramesh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, June 14, 2002 4:54 PM Subject: one more doubt > why is that ejbLoad() is called before ejbStore() and ejbRemove() > > Regards > > Ramesh Kesavanarayanan > Electronic Data Systems India pvt Ltd > > * [EMAIL PROTECTED] > > =========================================================================== > 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". > =========================================================================== 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".