There is not direct way. If the clients transaction is in progress. for eg it has retrieved the data from the entity beans by calling getter method or DTO, and meanwhile data is updated manually , there is no way you can know. However Appserver gives the various options on when to synchronise the data with DB as Hemant told. For eg by calling any business methods, at the start of transaction etc. You may programmatically handle this problem by version control. and there are various patterns on this available.
/Ashwani >-----Original Message----- >From: Pedro Salazar [mailto:[EMAIL PROTECTED] >Sent: Thursday, September 04, 2003 12:01 AM >To: [EMAIL PROTECTED] >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". > ____________________________________________________ This message contains information that may be privileged or confidential and is the property of the Cap Gemini Ernst & Young Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorised to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. =========================================================================== 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".
