3 Replies Latest reply on Jun 26, 2006 4:28 AM by marcreis

    configuring jboss cache for EJB3/hibernate

    armita

      Could you please tell me how can I configure my EJB3 application to use jboss cache. I searched the documentation but there is not a step by step guid to be followed

        • 1. Re: configuring jboss cache for EJB3/hibernate
          marcreis

          I also have some issues on this, but maybe I can help a bit.
          Do you want to configure the 2nd level Cache? If you have a hibernate.cfg.xml in your project, you can set it up in there.
          Alternatively the "shiped" full install comes with the ejb3-clustered-sfsbcache-service.xml and ejb3-entity-cache-service.xml where caches are Setup.

          • 2. Re: configuring jboss cache for EJB3/hibernate

            What issue you have now? Just curious. Thanks.

            -Ben

            • 3. Re: configuring jboss cache for EJB3/hibernate
              marcreis

              (I hope I am not hijacking...)
              I have the problem, that when I try to use the cache, it results in a:

              16:51:44,625 WARN [ServiceController] Problem starting service jboss.j2ee:ear=t
              estEJB.ear,jar=testEJB.jar,name=NatPersLstSFBean,service=EJB3
              java.lang.RuntimeException: java.lang.NoSuchFieldError: eviction_policy_provider at org.jboss.ejb3.
              ServiceDelegateWrapper.startService(ServiceDelegateWra
              pper.java:105) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
              upport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
              eanSupport.java:245)...
              

              I guess it is due to configuration or version missmatching.. (AS4.0.4GA with 1.3.0 or 1.4.0CR1). I wanted to use a cache >=1.3.0 so that I can use the optimistic node locking (prefarable the 1.4.0 since its been tuned for speed).

              I posted about it here (with details)
              http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83655
              , but I guess it got kind of lost (after the 1.2.4 issue).

              Sincerly
              Marc