Examples of addApplicationParameter()


Examples of org.apache.catalina.Context.addApplicationParameter()

        Context context = tomcat.addContext( "", System.getProperty( "java.io.tmpdir" ) );

        ApplicationParameter applicationParameter = new ApplicationParameter();
        applicationParameter.setName( "contextConfigLocation" );
        applicationParameter.setValue( getSpringConfigLocation() );
        context.addApplicationParameter( applicationParameter );

        context.addApplicationListener( ContextLoaderListener.class.getName() );

        Tomcat.addServlet( context, "cxf", new CXFServlet() );
        context.addServletMapping( "/" + getRestServicesPath() + "/*", "cxf" );
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

        Context context = tomcat.addContext( "", System.getProperty( "java.io.tmpdir" ) );

        ApplicationParameter applicationParameter = new ApplicationParameter();
        applicationParameter.setName( "contextConfigLocation" );
        applicationParameter.setValue( getSpringConfigLocation() );
        context.addApplicationParameter( applicationParameter );

        context.addApplicationListener( new ApplicationListener( ContextLoaderListener.class.getName(), false ) );

        tomcat.addServlet( context, "cxf", new CXFServlet() );
        context.addServletMapping( "/" + getRestServicesPath() + "/*" , "cxf" );
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

        Context context = tomcat.addContext( "", System.getProperty( "java.io.tmpdir" ) );

        ApplicationParameter applicationParameter = new ApplicationParameter();
        applicationParameter.setName( "contextConfigLocation" );
        applicationParameter.setValue( getSpringConfigLocation() );
        context.addApplicationParameter( applicationParameter );

        context.addApplicationListener( ContextLoaderListener.class.getName() );

        Tomcat.addServlet( context, "cxf", new CXFServlet() );
        context.addServletMapping( "/" + getRestServicesPath() + "/*", "cxf" );
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

      for (ContextResource res : configuredContext.createContextResourceObjects()) {
        ctx.getNamingResources().addResource(res);
      }

      for (ApplicationParameter param : configuredContext.getParameters()) {
        ctx.addApplicationParameter(param);
      }

      if (configuredContext.getContextFile() != null) {
        Path contextFilePath = Paths.get(configuredContext.getContextFile());
        if (Files.exists(contextFilePath)) {
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

      for (ContextResource res : configuredContext.createContextResourceObjects()) {
        ctx.getNamingResources().addResource(res);
      }

      for (ApplicationParameter param : configuredContext.getParameters()) {
        ctx.addApplicationParameter(param);
      }

      if (configuredContext.getContextFile() != null) {
        Path contextFilePath = Paths.get(configuredContext.getContextFile());
        if (Files.exists(contextFilePath)) {
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

      for (ContextResource res : configuredContext.createContextResourceObjects()) {
        ctx.getNamingResources().addResource(res);
      }

      for (ApplicationParameter param : configuredContext.getParameters()) {
        ctx.addApplicationParameter(param);
      }

      if (configuredContext.getContextFile() != null) {
        Path contextFilePath = Paths.get(configuredContext.getContextFile());
        if (Files.exists(contextFilePath)) {
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

    for (ContextResource res : contextResources) {
      ctx.getNamingResources().addResource(res);
    }

    for (ApplicationParameter param : contextInitializationParameters) {
      ctx.addApplicationParameter(param);
    }

    if (contextFileURL != null) {
      ctx.setConfigFile(contextFileURL);
    }
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

        Context context = tomcat.addContext( "", System.getProperty( "java.io.tmpdir" ) );

        ApplicationParameter applicationParameter = new ApplicationParameter();
        applicationParameter.setName( "contextConfigLocation" );
        applicationParameter.setValue( getSpringConfigLocation() );
        context.addApplicationParameter( applicationParameter );

        context.addApplicationListener( new ApplicationListener( ContextLoaderListener.class.getName(), false ) );

        tomcat.addServlet( context, "cxf", new CXFServlet() );
        context.addServletMapping( "/" + getRestServicesPath() + "/*" , "cxf" );
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

      for (ContextResource res : configuredContext.createContextResourceObjects()) {
        ctx.getNamingResources().addResource(res);
      }

      for (ApplicationParameter param : configuredContext.getParameters()) {
        ctx.addApplicationParameter(param);
      }

      if (configuredContext.getContextFile() != null) {
        Path contextFilePath = Paths.get(configuredContext.getContextFile());
        if (Files.exists(contextFilePath)) {
View Full Code Here

Examples of org.apache.catalina.Context.addApplicationParameter()

      for (ContextResource res : configuredContext.createContextResourceObjects()) {
        ctx.getNamingResources().addResource(res);
      }

      for (ApplicationParameter param : configuredContext.getParameters()) {
        ctx.addApplicationParameter(param);
      }

      if (configuredContext.getContextFile() != null) {
        Path contextFilePath = Paths.get(configuredContext.getContextFile());
        if (Files.exists(contextFilePath)) {
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.