Package org.jboss.cache

Examples of org.jboss.cache.PropertyConfigurator


      log.info("Starting JBoss Treecache 1.x");

      try
      {
         cache = new TreeCache();
         new PropertyConfigurator().configure(cache, getConfigurationAsStream());
         cache.createService();
         cache.startService();

      }
      catch (Exception e)
View Full Code Here


    treeCache = new TreeCache();

    Resource configLocation = getConfigLocation();

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

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

      resource = DEFAULT_CONFIG;
    }
    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

      resource = DEFAULT_CONFIG;
    }
    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

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

    InputStream in = null;
    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("Starting JBoss Treecache 1.x");

      try
      {
         cache = new TreeCache();
         new PropertyConfigurator().configure(cache, getConfigurationAsStream());
         cache.createService();
         cache.startService();

      }
      catch (Exception e)
View Full Code Here

      resource = DEFAULT_CONFIG;
    }
    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

      resource = DEFAULT_CONFIG;
    }
    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

TOP

Related Classes of org.jboss.cache.PropertyConfigurator

Copyright © 2018 www.massapicom. 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.