How can I make ejbStore() not get called on a cmp 2.0 entity bean in 
JBoss 3.0.1 if no data has changed?  With cmp 1.1 beans, the sets/gets 
weren't abstract so I could keep track of the changes and implement an 
isModified() method.  With cmp 2.0, I can't do that.  I'm usually doing 
just reads (can't make the bean read-only, though, as updates might 
happen sometimes).  I though the jboss cmp container was supposed to 
keep track of what has changed in cmp 2.0?

Oh yeah - the reason I don't want ejbStore() called is because I'm using 
xdoclet to implement soft-locking for me, which introduces a 
set/getVersion persistent field in my beans.  This gets incremented in 
ejbStore().  The problem is that I don't want it to get incremented if 
no data in the bean has changed.

my env:
- JBoss 3.0.1 w/bundled Jetty
- Sun JDK 1.4.0_01
- Red Hat 7.1 Linux 2.4.9-31, i686

some app info:
- All entities are cmp 2.0 with only local interfaces behind a single 
SLSB, with transaction set to Required on all ejbs.
- I'm using CMR's.

Thanks for the help,
David

---------------------
David Ward
[EMAIL PROTECTED]
http://www.dotech.com



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to