[英]Getting old values from database, even after update?
I am using MySQL as DB, and Toplink essential as persistence layer. 我将MySQL用作数据库,并将Toplink用作持久层。
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. 但是我总是在服务器的START实例中获得该值。
But I restart the server, then only, its giving me the updated value. 但是我仅重启服务器,它为我提供了更新的值。
What could be the problem? 可能是什么问题呢?
I was able to fix the problem by updating Persistence.xml
, which allowed to disable any kind of Caching done by toplink. 我能够通过更新Persistence.xml
来解决此问题,该文件允许禁用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 引用链接http://docs.oracle.com/cd/B31017_01/web.1013/b28221/cfgdepds005005.htm#TopLinkCaching
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.