super.setUp();
mcl_exception = null;
m_contextFactory = System.getProperty(Context.INITIAL_CONTEXT_FACTORY);
System.setProperty(Context.INITIAL_CONTEXT_FACTORY, CONTEXT_FACTORY);
DummyTransactionManager.getInstance();
PropertyConfigurator config = new PropertyConfigurator();
// setup and start the source cache
m_srcCache = new TreeCache();
config.configure(m_srcCache, "META-INF/replSync-service.xml");
m_srcCache.setTransactionManagerLookupClass(
"org.jboss.cache.DummyTransactionManagerLookup");
m_srcCache.setCacheMode(TreeCache.REPL_SYNC);
m_srcCache.setSyncCommitPhase(true);
m_srcCache.createService();
m_srcCache.startService();
// setup and start the destination cache
m_dstCache = new TreeCache();
config.configure(m_dstCache, "META-INF/replSync-service.xml");
m_dstCache.setTransactionManagerLookupClass(
"org.jboss.cache.DummyTransactionManagerLookup");
m_dstCache.setCacheMode(TreeCache.REPL_SYNC);
m_dstCache.setSyncCommitPhase(true);