3 Replies Latest reply on Jul 3, 2008 6:04 PM by henk53

    Standalone cache, what TransactionManager to use?

    molsen-ee

      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();
      tml.getTransactionManager().commit();
      


      I get the following exception:

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