Package org.apache.geronimo.main

Examples of org.apache.geronimo.main.ServerInfo


    public void start(BundleContext context) throws Exception {
        String config = System.getProperty(Log4jService.LOG4JSERVICE_CONFIG_PROPERTY);
        if (config != null) {
            ConfigurationAdmin configAdmin = getService(context, ConfigurationAdmin.class);
            if (configAdmin != null) {
                ServerInfo serverInfo = getService(context, ServerInfo.class);
                Configuration configuration = configAdmin.getConfiguration("org.ops4j.pax.logging");               
                service = new OSGiLog4jService(config, 60, serverInfo, configuration);
                service.start();
               
                context.registerService(SystemLog.class.getName(), service, null);
View Full Code Here


    public void start(BundleContext context) throws Exception {
        String config = System.getProperty(Log4jService.LOG4JSERVICE_CONFIG_PROPERTY);
        if (config != null) {
            ConfigurationAdmin configAdmin = getService(context, ConfigurationAdmin.class);
            if (configAdmin != null) {
                ServerInfo serverInfo = getService(context, ServerInfo.class);
                Configuration configuration = configAdmin.getConfiguration("org.ops4j.pax.logging");               
                service = new OSGiLog4jService(config, 60, serverInfo, configuration);
                service.start();
               
                context.registerService(SystemLog.class.getName(), service, null);
View Full Code Here

TOP

Related Classes of org.apache.geronimo.main.ServerInfo

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.