-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JBossCache + Collections update problem
PostPosted: Wed Feb 14, 2007 4:22 pm 
Beginner
Beginner

Joined: Wed Sep 07, 2005 9:57 am
Posts: 20
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.