3 Replies Latest reply on Jul 3, 2008 6:04 PM by henk de boer

    Standalone cache, what TransactionManager to use?

    M Olsen Newbie

      I'm implementing a standalone cache (not using any other JBoss packages) and am looking for information on what TransactionManager to use.

      Currently it falls back to "DummyTransactionManager" and that seems to be unfit for production use. The only other TM in the jboss-cache-core package is the BatchModeTransactionManager, it's code indicates it is for POJO caches.

      I ask because I think my other issue (posted below, regarding memory usage) is linked to uncommitted transactions filling up memory. When I try to commit the transactions as such:

      GenericTransactionManagerLookup tml = new GenericTransactionManagerLookup();

      I get the following exception:

      java.lang.IllegalStateException: thread not associated with transaction
       at org.jboss.cache.transaction.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:74)