Examples of TreeCache


Examples of org.jboss.cache.TreeCache

      }
   }

   private void createCache(IsolationLevel level) throws Exception
   {
      cache = new TreeCache();
      PropertyConfigurator config = new PropertyConfigurator();
      config.configure(cache, "META-INF/local-service.xml");

      cache.setCacheMode(TreeCache.LOCAL);
      cache.setIsolationLevel(level);
View Full Code Here

Examples of org.jboss.cache.TreeCache

        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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.