1 Reply Latest reply on Aug 24, 2009 5:21 AM by Chris Miles

    JBoss Cache and Hibernate

    Chris Miles Newbie


      I have set up an application using

      hibernate jboss cache - 3.3.2
      jboss cache core - 3.1.0
      hibernate core 3.3.2

      deployed to Glassfish 2.1

      and using the following hibernate properties

      I can execute queries fine on my local machine.

      How can I be check if data is coming from the cache and not directly from persistant storage. When I turn on hibernate's show_sql property SQL is generated and printed everytime I perform an action on the database, so there is no way to know if it is coming from the cache or not.

      Secondly, how do I join a second machine to the cluster. Do I just deploy the application on another machine in the local network? Will the default JGroups configuration be ok for this? Or will I need to configure my own?

      Best Regards,


        • 1. Re: JBoss Cache and Hibernate
          Chris Miles Newbie

          seems the properties have been picked up as HTML.

          Will try in a code tag:

          <property name="hibernate.transaction.manager_lookup_class"
           value="org.hibernate.transaction.SunONETransactionManager "/>
           <property name="hibernate.cache.use_second_level_cache"
           <property name="hibernate.cache.use_query_cache"
           <property name="hibernate.cache.region.jbc2.query.localonly"
           <property name="hibernate.cache.region.factory_class"