[jbosscache-dev] JBCACHE-840

Vladimir Blagojevic vladimir.blagojevic at jboss.com
Wed Jan 3 10:38:27 EST 2007


Just an update on what I am doing regarding JBCACHE-840. The best
approach seems to be to create UnitTestCacheFactory with following
signatures:

Cache createCache(Configuration c);
Configuration createConfiguration(int type); //type=sync|async
Cache createCache(int type); //type=sync|async 

UnitTestCacheFactory will have inner parser class that that is a
subclass of XmlConfigurationParser. This subclass will read cache
configuration file which will have all supported jgroups stacks.
Something similar to mux stacks.

When invoking create methods of UnitTestCacheFactory jvm parameter will
be consulted to decide whether to crate udp, tcp, tcp-nio stack and so
on. 

If you have some suggestions shoot back.





More information about the jbosscache-dev mailing list