[jboss-user] [JBossCache] - Re: config loading issue with 2.0.0.BETA2
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039341#4039341 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039341 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: config loading issue with 2.0.0.BETA2
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4035949#4035949 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4035949 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: config loading issue with 2.0.0.BETA2
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. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034549#4034549 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034549 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: config loading issue with 2.0.0.BETA2
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034360#4034360 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034360 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBossCache] - Re: config loading issue with 2.0.0.BETA2
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. :-) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034334#4034334 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034334 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user