This content has been marked as final.
Show 2 replies
-
1. Re: How to use treecache.xml as configuration for jboss cach
manik Jun 2, 2008 7:34 AM (in response to yair.zaslavsky)You could extend the Hibernate TreeCacheProvider to look up the cache from JMX instead of looking for the hardcoded treecache.xml file. Also, chk the Hibernate forums, IIRC someone did contribute a version of the TreeCacheProvider that did just that.
-
2. Re: How to use treecache.xml as configuration for jboss cach
yair.zaslavsky Jun 5, 2008 4:28 AM (in response to yair.zaslavsky)I managed to solve this problem.
I am not using TreeCache via JMX, but I created an object of TreeCache, and usingthis.getClass().getClassLoader().getResourceAsStream("treecache.xml"
);
I managed to get an input stream to treecache.xml,
I then pass this stream to PropertyConfigurator and configure my cache object.