Searched quite a bit to find an answer to this problem, so please let me know if it's 
already been answered...

I'm using CMP, with commit-option A (JBoss 3.2.5). I have some container managed 
relationships (CRM) set up. As a conceptual example similar to my own, a box contains 
many gadgets, each of which contains many widgets. Here's the scenario where I'm 
experiencing the problem:

I look up a box entity, then iterate through all its gadget entities and all of their 
widget entities. Later on (in a different transaction), I use a finder method (not the 
primary key finder) to directly find a particular widget entity, and update its state. 
(I can verify that this is being updated in the database just fine). However, if, in 
yet another transaction later on, I use the CMR structure described above to access 
the same particular widget entity, it still has the old value. I verified (using 
toString on the entity object) that there are two separate entity instances 
representing the same database row (one when I found the widget directly, the other 
when I got it through the CMR hierarchy), but the original entity didn't get updated. 
I also verified that both entity instances have the same primary key (simply a string 
value). The database got updated, but one of the entity instances didn't stay in sync.

Is this expected behavior? I'm not too familiar with the JBoss entity caching or CMR 
internals, so maybe I'm missing something important.

(Note that the database is not being updated by anything but JBoss.)

Thanks!

(Using JBoss 3.2.5, Windows 2000, Sun JVM 1.4.2_03.)

-Daniel Boggs

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3847835#3847835

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3847835


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to