[jboss-user] [JBoss Cache: Core Edition] - Re: No transactionality in caches

duncow do-not-reply at jboss.com
Mon Jun 2 19:04:18 EDT 2008

The comment above about making sure a transaction hasn't already started intrigues me.  

We're using *pessimistic* locking, but we are also using Spring's HibernateTransactionManager (specifically, annotation-based declarative transaction management).

If we are not using HibernateTransactionManager to support optimistic locking, should we still be able to use HibernateTransactionManager with JBoss Cache in a clustered environment, for pessimistic locking?  If JBoss Cache throws a ReplicationException, for example, shouldn't HibernateTransactionManager still roll back the transaction?  

Because we are seeing ReplicationExceptions and cache inconsistency, even with pessimistic locking and replication sync, I am also wondering if we are on the wrong road entirely by attempting to use JBoss Cache without JTA, even with pessimistic locking.

We are running on

-- Tomcat 6.0.14
-- Spring 2.0.4
-- Hibernate 3.2.5
-- JBoss Cache 1.4.1.SP9

Thanks in advance for any insights.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155177#4155177

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155177

More information about the jboss-user mailing list