Hi, i am using ehcache as second level cache in hibernate. I have an deployable unit .ear file in side there will be wars as well. Iam reading hibernate.cfg.xml from outside of ear file. Now everything works fine for me .Now i want to configure ehcache for the same. How can i tell the hibernate to refer ehcache.xml file from outside the ear file. placed along with hibernate.cfg.xml file. I searched net and found some configuration like below but nothing worked for me