Package org.jboss.cache

Examples of org.jboss.cache.PropertyConfigurator.configure()


    Resource configLocation = getConfigLocation();

    if (configLocation != null) {
      PropertyConfigurator configurator = new PropertyConfigurator();
      configurator.configure(treeCache, configLocation.getInputStream());
    }

    treeCache.createService();
    treeCache.startService();
  }
View Full Code Here


    }
    log.debug( "Configuring TreeCache from resource [" + resource + "]" );
    try {
      cache = new org.jboss.cache.TreeCache();
      PropertyConfigurator config = new PropertyConfigurator();
      config.configure( cache, resource );
      TransactionManagerLookup transactionManagerLookup =
          TransactionManagerLookupFactory.getTransactionManagerLookup( properties );
      if ( transactionManagerLookup == null ) {
        throw new CacheException(
            "JBossCache only supports optimisitc locking with a configured " +
View Full Code Here

    }
    log.debug( "Configuring TreeCache from resource [" + resource + "]" );
    try {
      cache = new org.jboss.cache.TreeCache();
      PropertyConfigurator config = new PropertyConfigurator();
      config.configure( cache, resource );
      TransactionManagerLookup transactionManagerLookup = TransactionManagerLookupFactory.getTransactionManagerLookup(properties);
      if (transactionManagerLookup!=null) {
        cache.setTransactionManagerLookup( new TransactionManagerLookupAdaptor(transactionManagerLookup, properties) );
        transactionManager = transactionManagerLookup.getTransactionManager(properties);
      }
View Full Code Here

  }
 
  public static void createTreeCache( TreeCache treeCache, String pathToConfigFile ) throws ConfigureException
  {
    PropertyConfigurator configurator = new PropertyConfigurator();
    configurator.configure( treeCache, pathToConfigFile );
  }
 
  public static void startDB() throws Exception
  {
   
View Full Code Here

    try
    {
      treeCache = new TreeCache();
      in = getConfigInputStream( this.config );
      PropertyConfigurator configurator = new PropertyConfigurator();
      configurator.configure( treeCache, in );
    }
    catch ( Exception e )
    {
      log.error( e );
      throw new FtpFileCacheException ( e );
View Full Code Here

      log.debug("Configuring TreeCache from resource [" + resource + "]");
      try
      {
         cache = new org.jboss.cache.TreeCache();
         PropertyConfigurator config = new PropertyConfigurator();
         config.configure(cache, resource);
         TransactionManagerLookup transactionManagerLookup = TransactionManagerLookupFactory.getTransactionManagerLookup(properties);
         if (transactionManagerLookup != null)
         {
            cache.setTransactionManagerLookup(new TransactionManagerLookupAdaptor(transactionManagerLookup, properties));
            transactionManager = transactionManagerLookup.getTransactionManager(properties);
View Full Code Here

    }
    log.debug( "Configuring TreeCache from resource [" + resource + "]" );
    try {
      cache = new org.jboss.cache.TreeCache();
      PropertyConfigurator config = new PropertyConfigurator();
      config.configure( cache, resource );
      TransactionManagerLookup transactionManagerLookup = TransactionManagerLookupFactory.getTransactionManagerLookup(properties);
      if (transactionManagerLookup!=null) {
        cache.setTransactionManagerLookup( new TransactionManagerLookupAdaptor(transactionManagerLookup, properties) );
        transactionManager = transactionManagerLookup.getTransactionManager(properties);
      }
View Full Code Here

    }
    log.debug( "Configuring TreeCache from resource [" + resource + "]" );
    try {
      cache = new org.jboss.cache.TreeCache();
      PropertyConfigurator config = new PropertyConfigurator();
      config.configure( cache, resource );
      TransactionManagerLookup transactionManagerLookup =
          TransactionManagerLookupFactory.getTransactionManagerLookup( properties );
      if ( transactionManagerLookup == null ) {
        throw new CacheException(
            "JBossCache only supports optimisitc locking with a configured " +
View Full Code Here

      super.setUp();
      Properties prop = new Properties();
      prop.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.cache.transaction.DummyContextFactory");
      cache_ = new PojoCache();
      PropertyConfigurator config = new PropertyConfigurator(); // configure tree cache.
      config.configure(cache_, "META-INF/replSync-service.xml");

      cache1_ = new PojoCache();
      config.configure(cache1_, "META-INF/replSync-service.xml");
      cache_.start();
      cache1_.start();
View Full Code Here

      cache_ = new PojoCache();
      PropertyConfigurator config = new PropertyConfigurator(); // configure tree cache.
      config.configure(cache_, "META-INF/replSync-service.xml");

      cache1_ = new PojoCache();
      config.configure(cache1_, "META-INF/replSync-service.xml");
      cache_.start();
      cache1_.start();
   }

   protected void tearDown() throws Exception
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.