May 16th, 2011, 11:05 AM
Spring 3.0 + EHCache transaction management in IBM Websphere 6.1
I am using Spring 3.0.x, Ehcache 2.2, Sybase ASE 12.x, IBM Websphere v220.127.116.11 in my project. I would like to implement transaction management for DB and Ehcache. Has anyone worked with this before ? Please can someone provide useful tips for implementing this ? Also can someone suggest a smart way to verify if the implemented transaction management is actually working properly or not.
I would be going for declarative management so is it better to use @Transactional Annotation or use <tx:advice> ?
Thanks in advance!
May 23rd, 2011, 10:33 AM
You will have to use Hibernate if you want your cache to be transactional. Basically Hibernate 2nd level cache. Before using 2nd level cache, you should go through guidelines, specially if you are running your application in a cluster, as in that case you will need a cluster aware cache (like Jboss Tree Cache).
Spring 3.1 has introduced support for caching (http://static.springsource.org/sprin...tml/cache.html), however i don't think it has support for transactions.