public void start() {
    ClassLoader old = getTccl();
    try {
      setTccl(servletContext.getClassLoader());

      try {
        final Map<String, SessionPersistenceManager.PersistentSession> sessionData =
            sessionPersistenceManager.loadSessionAttributes(
                deploymentName, servletContext.getClassLoader());
        if (sessionData != null) {
          this.data.putAll(sessionData);
        }
      } catch (Exception e) {
        UndertowServletLogger.ROOT_LOGGER.failedtoLoadPersistentSessions(e);
      }
      this.started = true;
    } finally {
      setTccl(old);
    }
  }
예제 #2
0
 @Override
 public void log(final Exception exception, final String msg) {
   UndertowServletLogger.ROOT_LOGGER.error(msg, exception);
 }
예제 #3
0
 @Override
 public void log(final String message, final Throwable throwable) {
   UndertowServletLogger.ROOT_LOGGER.error(message, throwable);
 }
예제 #4
0
 @Override
 public void log(final String msg) {
   UndertowServletLogger.ROOT_LOGGER.info(msg);
 }