[jboss-user] [JBoss Cache: Core Edition] - JTA transactions with Atomikos and cache loaders

feutche do-not-reply at jboss.com
Mon Jul 6 11:54:21 EDT 2009


Hello, I've got a problem with JTA transactions using atomikos transaction manager implementation.

I'm using atomikos 3.4.4 and jboss-cache 3.0.2, I know that these are not the latest, but I've checked at least jboss-cache 3.1.0 sources and it looks like it's the same there, let me know if it's not true.

Issue is that cache loader commit is never being called, and that is caused by the fact that atomikos removes transaction from current thread between handlePrepareCommand(...) and handleCommitCommand(...) is being called on CacheStoreInterceptor. 

After calling beforeCompletion() transaction is being removed from the thread, so when afterCompletion() and then CacheStoreInterceptor.handleCommitCommand is being invoked (with a command containing global transaction handle), CacheStoreInterceptor.inTransaction() returns false and the command is just ignored.

Please let me know if it's a known issue with atomikos (or it's their issue?).

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

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



More information about the jboss-user mailing list