I have this weird and interesting problem with hibernate interfering with ehcache on Terracotta.
I have 2 clients, one jboss the other a standalone vm. Both share a common ehcache instance on Terracotta.
Now this works, depending on which client starts first after terracotta.
If the standalone vm starts first then everything is fine.
If jboss starts first then when the standalone vm tries to use the cache it fails because the cache has configured itself to use HibernateElementSerializationStrategy for the keys. As this has a classpath dependency on org.hibernate.cache.CacheKey and that is not in the standalone vm the cache blows up.
So, is there a way to configure ehcache to use a specific strategy and not hibernate? For me hibernate is legacy so ehcache should have no need to refer to it.