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.
What issue you have now? Just curious. Thanks.
(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)
, but I guess it got kind of lost (after the 1.2.4 issue).