Package org.apache.catalina

Examples of org.apache.catalina.Engine.addChild()


        Engine engine = embedded.createEngine();
        engine.setDefaultHost("localhost");

        // Create a default virtual host
        this.host = this.embedded.createHost("localhost", this.homePath + "/webapps");
        engine.addChild(this.host);

        // Add the engine
        embedded.addEngine(engine);

        /*
 
View Full Code Here


        // Add the new instance to its parent component
        ObjectName pname = new ObjectName(parent);
        Service service = getService(pname);
        Engine engine = (Engine) service.getContainer();
        engine.addChild(host);

        // Return the corresponding MBean name
        return (host.getObjectName().toString());

    }
View Full Code Here

    }

    /** {@inheritDoc} */
    public synchronized void addHost(Host host) {
        final Engine engine = this.engine;
        engine.addChild(host);
        // FIXME: Hack, remove with next JBW build
        for (LifecycleListener listener : service.findLifecycleListeners()) {
            if (listener instanceof ServiceMapperListener) {
                host.addContainerListener((ServiceMapperListener) listener);
            }
View Full Code Here

        // Add the new instance to its parent component
        ObjectName pname = new ObjectName(parent);
        Service service = getService(pname);
        Engine engine = (Engine) service.getContainer();
        engine.addChild(host);

        // Return the corresponding MBean name
        return (host.getObjectName().toString());

    }
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.