-->
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: Stale data across applications
PostPosted: Tue Sep 26, 2006 2:37 pm 
Newbie

Joined: Tue Sep 26, 2006 12:25 pm
Posts: 1
Someone PLEASE help!

Environment:
multiple webapps under Tomcat 5.5, MySQL, JDBC, Hibernate3, using SessionFactory

Problem:
Database changes in an application are not seen in the other applications until Tomcat is restarted OR I see this in the mysql log file:

Code:
26 Connect     root@localhost on mydatabase
26 Query       SET NAMES latin1
26 Query       SET character_set_results = NULL
26 Query       SHOW VARIABLES
26 Query       SHOW COLLATION
26 Query       SET autocommit=1
26 Query       SET autocommit=0


So, it seems that each time I get a new connection, I get the latest data. The question is, why don't I get the latest data using an existing connection?

Notes:
- second-level caching is disabled
- show_sql is on, hibernate reports all queries on each request
- mysql's query log in on, all queries reported on each request

I have read just about every post here related to caching and I can't solve my problem.

If someone can help me with this, I would really appreciate it.


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.