distributed transactional cache

A customer I work for is in need for a distributed transactional cache.

Hibernate+EHCache is not an option since Hibernate is not the only persistence framework we use. we also have Spring JDBCTemplate and pure JDBC.

 

what we need is an easily distributed cache, with a transaction support. meaning the distributed cache is updated on transaction commit, or returns to its pre-transaction state on transaction rollback.

so far i didnt find anything usefull, any ideas?

Comments

one option is http://www.hazelcast.com/

 

A second option is http://www.terracotta.org/ .

 

They aquired Ehcache so they surely support that and as far as I racell they had a proxy wrapper that can handle pure JDBC calls.

 

 

Terracotta was the first thing I checked. unfortunatly it doesnt have the support i need for transactions.

if both hibernate and jdbc calls work with JTA as transactional agent, ehcache will be synchorinzed with the transaction.

 

take into account, changes at the jdbc will need to call ehcache api manually to invalidate specific cache enteries.

my bad, must have missed the EHCache distributed cache support for JTA.

I've read the Terracott EHCache support instead of going to the original site. lesson learned for today - less is more...

it's weird that Terracotta actually reduces the EHCache strength in this case.