[jboss-user] [JBoss Cache Users] - Re: CacheLoader saves but rollbacks
chtimi2
do-not-reply at jboss.com
Tue Nov 3 04:09:20 EST 2009
If i comment the following:
TransactionManager tm = Spring.getBean ( TransactionManager.class , "atomikosTransactionManager" );
| cache.getCache().getConfiguration().getRuntimeConfig().setTransactionManager(transactionManager);
the behaviour is completely different:
-instead of a single transaction spanning all operations between a SET AUTOCOMMIT FALSE and ROLLBACK, the log file structure is more complicated, including many SET AUTOCOMMIT FALSE and SET AUTOCOMMIT TRUE. More importantly there is no ROLLBACK at the end.
-consequently the data is really persisted
So, it works with the default, local transaction manager, but not with a JTA TM (Atomikos) ..
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4263621#4263621
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4263621
More information about the jboss-user
mailing list