[hibernate-dev] Hibernate, JBoss Cache and transactions

Manik Surtani manik at jboss.org
Thu Mar 15 10:03:18 EDT 2007


Hi,

Looking at this forum thread:

	http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028373

I see an issue with the cache.remove() call being made in the  
afterCompletion() block of a Synchronization.  The main issue here is  
that the current transaction is no longer valid by this stage (it  
has, by definition, completed).  From a transactional sense, what is  
the purpose of remove() being called in an afterCompletion() block?   
Is it intended that this remove() happens outside of the current  
transaction (either in a new transaction or without one)?

Cheers,
--
Manik Surtani

Lead, JBoss Cache
JBoss, a division of Red Hat

Email: manik at jboss.org
Telephone: +44 7786 702 706
MSN: manik at surtani.org
Yahoo/AIM/Skype: maniksurtani





More information about the hibernate-dev mailing list