-
1. Re: config loading issue with 2.0.0.BETA2
manik Apr 3, 2007 6:26 PM (in response to k-dub)You're right, it should have been carried over. See JBCACHE-1021.
If you want to patch 2.0.0.BETA2, the files changed are:org.jboss.cache.CacheFactory org.jboss.cache.factories.XmlConfigurationParser
You can grab them from CVS HEAD.
Thanks for letting me know about this. :-) -
2. Re: config loading issue with 2.0.0.BETA2
k-dub Apr 3, 2007 8:59 PM (in response to k-dub)Well, thanks for fixing it. I've been told we can't change the JBoss code, for license reasons (whatever that means), so I'll just have to figure out some kind of hack until another release comes out.
Thanks for the quick response. -
3. Re: config loading issue with 2.0.0.BETA2
manik Apr 4, 2007 9:20 AM (in response to k-dub)As a workaround, just put your root directory in your classpath and it should get picked up using the class loader. Not clean in any way, but it *is* a temporary workaround, after all. :-)
-
4. Re: config loading issue with 2.0.0.BETA2
fredrikj Apr 10, 2007 8:48 AM (in response to k-dub)If it helps, I extended DefaultCacheFactory and added my own little factory method that accepts an input stream.
The method looks like:public Cache createCache(InputStream is, boolean start) throws ConfigurationException { XmlConfigurationParser parser = new XmlConfigurationParser(); Configuration c = parser.parseStream(is); return createCache(c, start); }
Of course, it should be possible to _not_ extend the factory and create a cache in a similar manner. -
5. Re: config loading issue with 2.0.0.BETA2
manik Apr 20, 2007 12:07 PM (in response to k-dub)There still is time to add another factory method - why don't you send me a patch to DefaultCacheFactory? It would make it into the next rel.