Hi Pedro,

There are various ways in which CMP engine solves this problem. Some vendors
call this situation as non-exclusive access by the CMP bean to the database.

If DB is updated manually, then on the next transactional access to the bean
can load the data afresh. The CMP engine while reading the data can do
something like Select for .. update and hence disallow the data to be
updated till the current transaction is over. ANd again on the nect
transactional access can load the data via ejbLoad call.

You can check the vendor document to knwo more about such scenarios.

Regards,
Hemant
www.pramati.com

----- Original Message -----
From: "Pedro Salazar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 04, 2003 12:00 AM
Subject: manual changes in database, will update entity beans?


Greetings,

Entity beans are notified (updated) when a manual change in the database
table occurs? For instance, imagine I update manually a database table,
the entity beans will be actualized? In what conditions if apply.

I was wondering, if in the same way I have a transaction isolation (JTA)
that will prevents the concurrency or another isolation level by locking
data in the entity beans instances, it's possible that changing the
database (commiting), my entity beans will be synchronized to avoid
inconsistencies?

Could anyone give me a brief explanation about the data consistency
between entity beans and the data itself and how cache would be
affected.

thanks,
Pedro Salazar.
--
PS
[EMAIL PROTECTED]
PGP:0E129E31D803BC61

===========================================================================
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".

Reply via email to