Getting old values from database, even after update?

I am using MySQL as DB, and Toplink essential as persistence layer.

There is a column, that I used to update regularly. But am always getting the value the value that was there at instance of START of the server.

But I restart the server, then only, its giving me the updated value.

What could be the problem?

Answers


I was able to fix the problem by updating Persistence.xml, which allowed to disable any kind of Caching done by toplink.

<properties>
    <property name="toplink.cache.shared.default" value="false"/>
</properties>

Refered Link http://docs.oracle.com/cd/B31017_01/web.1013/b28221/cfgdepds005.htm#TopLinkCaching


Need Your Help

Where to implement Global.asax methods

c# asp.net vb.net global-asax

I am working on an ASP.Net application and currently the Global.asax contains the usual 5 methods:

Jinja2 block nesting issue

python flask jinja2

I am using jinja2 as a template language in my project. Here is simplified templates structure:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.