• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate Browser Change Observation

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

When I run my web-app(that uses hibernate) in firefox for example, the correct entries read from mysql table are shown.

If I then change records in the table, and open a new browser, say Chrome..
And load the same web-app, the updated value is not shown, I have to refresh the browser, even though its a freshly opened browser.

I don't really get it, when I call the servlet, it should read from the database and return the result, so why is it putting an old result on screen?

Thanks for any help.
 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay, I tried closing the hibernate session object after making the query, it seems ok now.

But I don't know if its wise to do that or if it doesn't really matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic