1 Reply Latest reply on Jul 14, 2015 9:06 AM by juno detro

    Using JBOSS Cache does not decrease Transaction Time

    juno detro Newbie

      Hi All,

            I am trying to use JBOSS Cache to my hibernate based web application deployed on TOMCAT Server.

      HIbernate.cfg.XML Settings were made to enable entity caching and query caching, but I find that after enabling the caching the transaction time is increased by several bounds.

      The same method with Caching took 306 secs and without Caching hitting the Database took only 13,500 millisecs.

      On Profiling where the withCacheEnabled.pngmethod level analysis where the time taken is more is when the rows are inserted to the OrderedList Cache.


      public class JBossTSTransactionManagerLookup implements TransactionManagerLookup


         public javax.transaction.TransactionManager getTransactionManager(Properties properties) throws HibernateException


            return com.arjuna.ats.jta.TransactionManager.transactionManager();


      Above is the transaction Manager Implementation used.


      Please let me know if I am missing something here.

      This is not in a clustered environment and is only one server and one Cache.