• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Hibernate Browser Change Observation  RSS feed

 
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
Boost this thread!