Package tigase.conf

Examples of tigase.conf.Configurator


      + "java.util.logging.ConsoleHandler.level=ALL\n"
      + "java.util.logging.ConsoleHandler.formatter=tigase.util.LogFormatter\n"
      ;
    Configurator.loadLogManagerConfig(initial_config);

    Configurator config = null;
    try {
      config = new Configurator(config_file, args);
    } catch (XMLDBException e) {
      System.err.println("");
      System.err.println("  --------------------------------------");
      System.err.println("  ERROR! Terminating the server process.");
      System.err.println("  Invalid XML configuration file: " + config_file);
      System.err.println("  Please fix the problem and start the server again.");
      System.exit(1);
    }
    config.setName("basic-conf");
    MessageRouter router = new MessageRouter();
    router.setName(server_name);
    router.setConfig(config);

    router.start();
View Full Code Here

TOP

Related Classes of tigase.conf.Configurator

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.