[jboss-user] [JBossCache] - Re: config loading issue with 2.0.0.BETA2

FredrikJ do-not-reply at jboss.com
Tue Apr 10 08:48:04 EDT 2007


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



More information about the jboss-user mailing list