This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate caching issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate caching issue" Watch "Hibernate caching issue" New topic

Hibernate caching issue

bharath pawan

Joined: Jan 25, 2007
Posts: 11
Hi guys,

I am facing a problem while implementing hibernate caching.Actually when i try to cache my pojo,

1.Caching file is externally getting created with no content(empty file).
2.Caching is not happening.

I am using hibernate annotations for caching(@proxy),enabled second level cache in my cfg and also i created eHcache.xml with the proper information.

Please help me to overcome this issue....
Vijitha Kumara

Joined: Mar 24, 2008
Posts: 3816

When you say it's not happening how you decide/test that? You may need to tell more details about it (TellTheDetails).

[How to ask questions] [Twitter]
bharath pawan

Joined: Jan 25, 2007
Posts: 11
Hi Vijitha,

Thanks for your reply....

As per my problem,caching files are getting created with no content..Hence caching is not happening...

Do you know what may be the problem?I dont have any error to post..

It is sorta covered in the JavaRanch Style Guide.
subject: Hibernate caching issue
Similar Threads
about hibernate caching and criteria
EJB3 and Hibernate Second Level Cache Invalidation
data loss upon 'post'
Hibernate: Throws Clobs are not cacheable Exception when try to cache
second level cache (ehcache) doubt