[JBoss-user] Readonly Methods ?

2001-05-26 Thread Chris DeGreef

How do I make the getter methods in my CMP bean be readonly?  Apparently
ejbStore is called when I call a get.. method.  A sample log4j output with
log.debug statements in every method in my CMP bean.

1043 [Thread-28] DEBUG SchoolDataBean uhtuve8ku1 - ejbActivate
1047 [Thread-28] DEBUG SchoolDataBean uhtuve8ku1 - ejbLoad()
1055 [Thread-28] DEBUG SchoolDataBean uhtuve8ku1 - getName()
1063 [Thread-28] DEBUG SchoolDataBean uhtuve8ku1 - ejbStore()


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



[JBoss-user] CMP database updates

2001-05-26 Thread Chris DeGreef

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