-
1. Re: Seam cache provider with ehcache null
christian.bauer Oct 28, 2009 7:01 PM (in response to cateno)It's not that easy, the JBoss Cache provider is hardcoded last time I checked. This website (/examples/wiki) uses EHCache though and you can look at the code to see how that was done.
Be aware that it's also using the same EHCache instance (with different regions) for Hibernate second-level data caching and HTML page fragment caching. That particular setup depends on the deployment order of persistence unit and Seam, which changed in JBoss 5.x. In other words: If you want to also use EHCache for both and copy the setup 1:1 from the example code, use JBoss 4.2.x.
-
2. Re: Seam cache provider with ehcache null
christian.bauer Oct 28, 2009 7:02 PM (in response to cateno)Oh, and it looks like what you are trying to do in your code example is not a good idea and you probably don't know much about data caching in Hibernate. Read up on that first before you do anything else.
-
3. Re: Seam cache provider with ehcache null
email2liyang Nov 13, 2009 7:05 AM (in response to cateno)<components
xmlns:cache="http://jboss.com/products/seam/cache"
xsi:schemaLocation=
"http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.1.xsd
http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
http://jboss.com/products/seam/navigation http://jboss.com/products/seam/navigation-2.0.xsd
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.0.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd
http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd">
<cache:eh-cache-provider/>
</components>
I add the <cache:eh-cache-provider> in components.xml, and put ehcache.jar into lib dir, the it works