title: Where exactly should I put ehcache.xml in my project?
body: <p>I've recently began using EHCache for caching purposes. I know, how to use it in Java code, but I'm still not sure about the configuration file. </p>
  
  <p>So, I have an ear project, that includes several war modules. If all these modules use ehcache, should I put a copy of ehcache.xml in WEB-INF for each module, or put it somewhere in ear file itself (META-INF maybe?)</p>
  
  <p>Also, it's not clear from the documentation, whether or not all these modules will use the same cache instance? The application is deployed at glassfish, will EHCache run the same cache for each module in ear, or each module will get his own singleton instance when used like this:</p>
  
  <pre><code>CacheManager singleton = CacheManager.create();
  </code></pre>