-->
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: Potential Cache Question - How to Debug
PostPosted: Thu Sep 27, 2012 8:54 pm 
Newbie

Joined: Thu Sep 27, 2012 7:25 pm
Posts: 1
We've created a Scheduling web application using hibernate. I'm using JSF Prime Faces and native Hibernate (not JPA). The issue I'm running into is that I will make a new instance of an event that is supposed to show up on my schedule. I've looked at the mySQL database and the item has been successfully added to the database.

What is NOT happening however is for the schedule piece to actually show the new entry until I hit refresh maybe 10-20 times.

I've tried
session.clear();
session.flush();
setting the cache mode etc

but no matter what I seem to do I can't get the new item to seem to show up in a reasonable time frame. I'm pretty sure its a Hibernate issue because I will do a criteria.list() and it will show 1 less entry for the database than there actually is. After refreshing closing opening or just waiting a while it will finally show the correct number of records.

I would love any suggestions you guys could offer. I assumed that my criteria was hitting the cache or something but I thought I disabled it so I'm unsure what the next steps are. Unfortunately, the code is at work so I can't post any snippits right now but hopefully I've been descriptive enough to make a little sense.

Thanks!


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.