[jboss-user] [JBossCache] - Re: Migrating to 2.0.0 using PropertyConfigurator
manik.surtani@jboss.com
do-not-reply at jboss.com
Wed Oct 31 12:18:39 EDT 2007
Hmm. From 2.1.0.GA onwards, I can overload ConfigurationFactory.createCache(String, boolean) with createCache(InputStream, boolean) and createCache(URL, boolean).
But for 2.0.0, you'd have to spin this by hand, unfortunately, doing something like the following:
1. Subclass org.jboss.cache.factories.XmlConfigurationParser and add a method to parse a URL.
2. In your method, call (protected) method XmlConfigurationParser.parseStream(InputStream is)
3. ... and get a hold of a Configuration object which you can then pass in to the ConfigurationFactory.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4100744#4100744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4100744
More information about the jboss-user
mailing list