-
1. Re: Examples for Usage&Configuration of PojoCache
pmuir Dec 21, 2006 7:29 AM (in response to mugwump)I can't find this in an example. But it is really easy. Add jgroups.jar jboss-cache.jar (see the seam lib dir), add a treecache.xml (example in the remoting/chatroom example) to your ear, (make sure they are on the ear classpath, e.g. put them in application.xml), add a <s:cache key="myKey"> tag to the page surrounding the portion of the view to cache, watch it cache. You can tune it from treecache.xml.
This is all the integration seam has with cache afaik, but you can use the pojocache component in your beans
e.g.PojoCache.instance().put(region, key, content); PojoCache.instance().get(region, key);
-
2. Re: Examples for Usage&Configuration of PojoCache
pmuir Dec 21, 2006 7:30 AM (in response to mugwump)I created http://wiki.jboss.org/wiki/Wiki.jsp?page=SeamExamplesByConcept this to hopefully make it easier to find stuff in the examples.
-
3. Re: Examples for Usage&Configuration of PojoCache
mugwump Dec 21, 2006 7:55 AM (in response to mugwump)thx peter, that was everything I needed: And the remoting-example is really helpful, shows everything I wanted to know!