JBoss Community

Using JBOSS Cache does not decrease Transaction Time

created by Makeshwari Sattanadin in JBoss Cache - View the full discussion

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 https://community.jboss.org/servlet/JiveServlet/downloadImage/2-757142-19333/450-253/withCacheEnabled.png method 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.

 

Thanks,

Reply to this message by going to Community

Start a new discussion in JBoss Cache at Community