As I understand it database synchronization happens at the transaction
boundaries. The bean is synchronized with the database at the start of a
transaction and the database is synchronized with the bean at the end of a
transaction. If you call a entity bean method that is declared as REQUIRES a
transaction then the database will be updated at the end of the method call.
So, each call to setter method will result in a database write. My
explaination ignores nested method calls from another ejb with an inherited
transaction context.
I think that whether the database is updated at other times may be vendor
dependent.
Rick Hansen
>-----Original Message-----
>From: Roopa Kotha [mailto:[EMAIL PROTECTED]]
>Sent: Monday, August 21, 2000 10:21 AM
>To: [EMAIL PROTECTED]
>Subject: CMP Bean and Database
>
>
>Hi Everyone,
>
>In CMP bean,Does database gets updated everytime we do
>create,set one of the
>fields(modify one of the fileds value) or it gets updated only when
>ejbstore() gets called and/or at idle timeout .
>
>Any ideas will be helpful
>
>Thanks
>Roopa
>
>===============================================================
>============
>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".