1 Reply Latest reply on Sep 4, 2007 12:54 PM by brian.stansberry

    JBossCache Tomcat Spring

    ebonsergent

      Hello, I'm trying to run Jbosscache on my application using Tomcat 5.5, Hibernate 3.2 and Spring 2.0 .
      But I'm facing some problems since I don't know how to configure it. I have seen it could work but as JBosscache requires JTA, do I have to use JOTM or something else to use JTA in Tomcat?
      Actually I use org.springframework.orm.hibernate3.HibernateTransactionManager to deal with Transactions in my application. I suppose, I have to use now org.springframework.transaction.jta.JtaTransactionManager but it requires either 'userTransaction' or 'userTransactionName' or 'transactionManager' or 'transactionManagerName' to work.

      Does anyone has use jbosscache with tomcat and Spring?
      Do I have to configure hibernate.transaction.factory_class and hibernate.transaction.manager_lookup_class in my mapping file?


      Thanks for any help.

      Emmanuel B.

        • 1. Re: JBossCache Tomcat Spring
          brian.stansberry

          If you want Hibernate and JBC to properly participate in the same transaction, then yeah, you're going to need to use a JTA transaction manager and configure Tomcat and Hibernate to use it. JOTM is one possibility; have a look as well at the JBoss Transactions user forum as well in case they can give you any help on integrating it in standalone Tomcat.