Package org.unidal.initialization

Examples of org.unidal.initialization.ModuleInitializer.execute()


      File clientXmlFile = getConfigFile(servletConfig, "cat-client-xml", "client.xml");
      File serverXmlFile = getConfigFile(servletConfig, "cat-server-xml", "server.xml");

      ctx.setAttribute("cat-client-config-file", clientXmlFile);
      ctx.setAttribute("cat-server-config-file", serverXmlFile);
      initializer.execute(ctx);
    } catch (Exception e) {
      m_exception = e;
      System.err.println(e);
      throw new ServletException(e);
    }
View Full Code Here


    if (!module.isInitialized()) {
      ModuleInitializer initializer = ctx.lookup(ModuleInitializer.class);

      ctx.setAttribute("cat-client-config-file", configFile);
      initializer.execute(ctx, module);
    }
  }

  public static void initialize(String... servers) {
    File configFile = null;
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.