I am quite new to CMP.  I am wondering why the database is being updated so
often.  Even when I am only (implicitly) retrieving rows.

The most obvious case is when I issue a call to the home instance like
"findByName".  Everything appears to be working correctly unless I set the
database debug flag on and look at the system.log.  I see that the table was
not only queried but actually updated.

This was only a concern of efficiency until I added triggers to my database.
Especially a trigger on "before update" that causes a field (called VERSION)
in the table to be updated.  I wouldn't want this trigger fired when I
simple query the row.

I would expect this type of action if I were updating the fields in the CMP
object.  However, I am not.  All I do is send "getters" to it in order to
populate my session bean.  Do I need to set some options or something?



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to