Esempio n. 1
0
  /** Filter initialization. */
  public void init(FilterConfig filterConfig) throws ServletException {
    ServletContext servletContext = filterConfig.getServletContext();

    madvoc = Madvoc.get(servletContext);
    if (madvoc == null) {
      madvoc = createMadvoc(filterConfig);

      try {
        madvoc.startNewWebApplication(servletContext);
      } catch (Exception ex) {
        throw new ServletException("Unable to start Madvoc web application.", ex);
      }
    }

    log = LoggerFactory.getLogger(MadvocServletFilter.class);

    madvocController = madvoc.getMadvocController();
  }