my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes ehcache.xml file I have in my ejb app is not used Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "ehcache.xml file I have in my ejb app is not used" Watch "ehcache.xml file I have in my ejb app is not used" New topic
Author

ehcache.xml file I have in my ejb app is not used

Stoyan Manchev
Greenhorn

Joined: Jan 26, 2010
Posts: 1
Hello,
I have an EJB app that is using JPA - Hibernate implementation. Application server that I use is Jboss 4.2.2. I decided to add second level caching. But unfortunately configuration
that I have in ehcache.xml file is not used. This is what I got when deploying the app:

WARNING: Could not find a specific ehcache configuration for cache named [My_APP_ear,My_EJB_jar,videostorecontext.com.videostore.model.User]; using defaults.

Here is part of persistence.xml


This is ehcache.xml


Structure of my project looks like this

What shall I do so that configuration I did is used instead of the default one. Thanks for your help.
 
GeeCON Prague 2014
 
subject: ehcache.xml file I have in my ejb app is not used