This content has been marked as final.
Show 3 replies
-
1. Re: Caching Entity Beans
epbernard Nov 4, 2005 5:22 AM (in response to mschmidke)set the assoc as lazy or hibernate will do a outer join to load them
set @Cache
set your cache_provider (see the Hibernate ref doc)
set you cache provider configuration (depends on the one you've chosen) -
2. Re: Caching Entity Beans
mschmidke Nov 4, 2005 6:12 AM (in response to mschmidke)"epbernard" wrote:
set the assoc as lazy or hibernate will do a outer join to load them
set @Cache
set your cache_provider (see the Hibernate ref doc)
set you cache provider configuration (depends on the one you've chosen)
Yes ... but: where can I read about configuring a cache? Hibernate Reference Documentation leaves me totally alone. In Chapter 20.2, it only tells that several types of cache exist.
However, the only one of them which works without error messages is "Hashtable" (which seems to be the one which only lasts for one transaction). All the other types seem to require some kind of configuration, but the whole internet, at least google, does not tell me how to do this. For none of the types.
Since I'm using JBoss, TreeCache seems to be the best choice, but I was not able to figure out anything about that secret treecache.xml file. (For example, have a look at http://wiki.jboss.org/wiki/Wiki.jsp?page=TreeCache).
Marcus. -
3. Re: Caching Entity Beans
epbernard Nov 17, 2005 5:51 AM (in response to mschmidke)Google "Jboss Cache", first link, then documentation ;-)
http://www.jboss.org/products/jbosscache/docs