Hibernate version: 3.2.2.ga
JBossCache version: 1.4.1.GA
Mapping snippet:
<set name="acl" inverse="true" where="mod_flag != 'D'" cascade="all" lazy="false" order-by="cna_group, cna_start_Page">
<cache usage="transactional"/>
<key>
<column name="cna_cnt_id" not-null="true" />
</key>
<one-to-many class="server.entities.content.ContentAcl" />
</set>
Hi,
I have a wee problem with cached Collections and JBossCache:
On my development machine I am running two webapps on one JBoss AppServer. I have 'Content' items which have a 1-n relationship to 'ContentAcl' items, which I would like to cache. Also the Content and the ContentAcl items are cached.
* I change some property in webapp1 on the Content Item -> the changes reflect in webapp2
* I change some property in webapp1 on an ContentAcl Item -> the changes reflect in webapp2
* I ADD a new ContentAcl Item to an Content Item -> the changes are NOT reflected in webapp2
It seems to me that JBossCache synchronizes the changes on the entities fine only when the collection gets updated, this change is not propagated.
Any hints or help is appreciated.
Best,
Ronald
|