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: Model class does not see updates made by another process
PostPosted: Tue Oct 27, 2009 10:39 am 
Newbie

Joined: Tue Oct 27, 2009 10:31 am
Posts: 1
I have a model class that uses

@Entity
@Name("enterprise")
@Table(name="VW_ENTERPRISE")
@Cache(usage=CacheConcurrencyStrategy.READ_ONLY)
public class Enterprise {
...
}

That does not see updates to the VW_ENTERPRISE view.

The query used gets everything from the table to populate a drop down.

In my Access implementation my query looks like:

return getSession().getNamedQuery("getEnterprises").setCacheable(true).list();

where the named query looks like:

<query name="getEnterprises">
<![CDATA[
from Enterprise e
where
e.superEnterprise is not null and
e.superEnterprise.UID <> 0
order by e.name
]]>
</query>

The view is populated with newly inserted rows by another process. I am forced to restart JBOSS in order to see any new rows.

Any ideas what common problems I may be encountering?

We are using OSCACHE where oscache.properties only has:

cache.capacity=10000
refresh.period=300
COM.xxx.refresh.period=300


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.