aspose file tools*
The moose likes EhCache and the fly likes Spring ,Hibernate & ehcache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Caching » EhCache
Bookmark "Spring ,Hibernate & ehcache" Watch "Spring ,Hibernate & ehcache" New topic
Author

Spring ,Hibernate & ehcache

Thillakan Saba
Ranch Hand

Joined: May 15, 2007
Posts: 53
I have got following warning when the application start up.



I found encache code in following url ..

ConfigurationFactory Code



what i understood from above code.

It is trying to load ehcache.xml but could not find the file so then it loads ehcache-failsafe.xml.

I want to know does this cause any problem to application ?

Any input on this greatly appreciated.

Thanks


SCBCD, SCJP & MCP
HowToAskQuestions
Guillaume Jourdan
Ranch Hand

Joined: Jul 24, 2012
Posts: 47

Hello,

http://ehcache.org/documentation/configuration/configuration#ehcache-failsafexml

First, EHCache search your configuration : ehcache.xml.

If EHCache can't find it, a warning is sended and use default configuration in ehcache-failsafexml.

If you use second level cache with default cache, it will take the default cache value in ehcache-failsafexml.

If you use second level cache with specific named cache, I think you will have some problems.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring ,Hibernate & ehcache
 
Similar Threads
ehcache1.5 -Can I remove "defaultCache"? Can I have "ehcache.xml" in 2 Proj, where 1 reference other
problem in commiting the transaction
java.lang.IllegalAccessError
Problem with ehcache
data insert error