Search in sources :

Example 1 with SystemPropertyServletConfiguration

use of io.joynr.integration.setup.SystemPropertyServletConfiguration in project joynr by bmwcarit.

the class ServersUtil method createBounceproxyControllerWebApp.

public static WebAppContext createBounceproxyControllerWebApp(String warFileName, String parentContext, Properties props) {
    WebAppContext bounceproxyWebapp = new WebAppContext();
    bounceproxyWebapp.setContextPath(createContextPath(parentContext, BOUNCEPROXYCONTROLLER_CONTEXT));
    bounceproxyWebapp.setWar("target/" + warFileName + ".war");
    if (props != null) {
        bounceproxyWebapp.setConfigurations(new Configuration[] { new WebInfConfiguration(), new WebXmlConfiguration(), new SystemPropertyServletConfiguration(props) });
    }
    // Makes jetty load classes in the same order as JVM. Otherwise there's
    // a conflict loading loggers.
    bounceproxyWebapp.setParentLoaderPriority(true);
    return bounceproxyWebapp;
}
Also used : WebAppContext(org.eclipse.jetty.webapp.WebAppContext) WebXmlConfiguration(org.eclipse.jetty.webapp.WebXmlConfiguration) WebInfConfiguration(org.eclipse.jetty.webapp.WebInfConfiguration) SystemPropertyServletConfiguration(io.joynr.integration.setup.SystemPropertyServletConfiguration)

Example 2 with SystemPropertyServletConfiguration

use of io.joynr.integration.setup.SystemPropertyServletConfiguration in project joynr by bmwcarit.

the class ServersUtil method createControlledBounceproxyWebApp.

public static WebAppContext createControlledBounceproxyWebApp(String parentContext, Properties props) {
    WebAppContext bounceproxyWebapp = new WebAppContext();
    bounceproxyWebapp.setContextPath(createContextPath(parentContext, BOUNCEPROXY_CONTEXT));
    bounceproxyWebapp.setWar("target/controlled-bounceproxy.war");
    if (props != null) {
        bounceproxyWebapp.setConfigurations(new Configuration[] { new WebInfConfiguration(), new WebXmlConfiguration(), new SystemPropertyServletConfiguration(props) });
    }
    // Makes jetty load classes in the same order as JVM. Otherwise there's
    // a conflict loading loggers.
    bounceproxyWebapp.setParentLoaderPriority(true);
    return bounceproxyWebapp;
}
Also used : WebAppContext(org.eclipse.jetty.webapp.WebAppContext) WebXmlConfiguration(org.eclipse.jetty.webapp.WebXmlConfiguration) WebInfConfiguration(org.eclipse.jetty.webapp.WebInfConfiguration) SystemPropertyServletConfiguration(io.joynr.integration.setup.SystemPropertyServletConfiguration)

Aggregations

SystemPropertyServletConfiguration (io.joynr.integration.setup.SystemPropertyServletConfiguration)2 WebAppContext (org.eclipse.jetty.webapp.WebAppContext)2 WebInfConfiguration (org.eclipse.jetty.webapp.WebInfConfiguration)2 WebXmlConfiguration (org.eclipse.jetty.webapp.WebXmlConfiguration)2