title: hibernate distributed query/L2 cache
body: <p>I'm working caching sql results for my distributed application servers. I found ehcache and memcached are 2 popular options for hibernate L2 cache. It seems that ehcache is much faster than memcached, and it has much easier operational advantage(ehcache is well supported to integrate to hibernate). </p>
  
  <p>However, my concern is how to set up ehcache for a cluster of app servers and sync them? It seems ehcache cluster support is not open source and very very expensive. Is there a way to use its cluster app server support without any payment? 
  Here's its config doc: <a href="http://ehcache.org/documentation/configuration/distributed-cache-configuration" rel="nofollow">http://ehcache.org/documentation/configuration/distributed-cache-configuration</a></p>
  
  <p>The same concern comes to hibernate query cache.</p>
  
  <p>Anybody has any experience?</p>
  
  <p>Thanks a lot!</p>