Package com.centraview.mail

Examples of com.centraview.mail.BackgroundMailCheck


  {
    try
    {
      logger.debug("[run] Starting BackgroundMailCheck.");
      // start a mail check, and stick it on the session
      BackgroundMailCheck currentDaemon = (BackgroundMailCheck)session.getAttribute("mailDaemon");
      if (currentDaemon == null || !currentDaemon.isAlive())
      {
        logger.debug("[run] No current living Daemon, start another.");
        BackgroundMailCheck mailDaemon = new BackgroundMailCheck("mailDaemon" + individualId, individualId, this.dataSource);
        mailDaemon.setDaemon(true);
        mailDaemon.start();
        session.setAttribute("mailDaemon", mailDaemon);
      }
    } catch(IllegalStateException ise) {
      // kill this job because the session is not
      // valid, so the user must not be logged in
View Full Code Here

TOP

Related Classes of com.centraview.mail.BackgroundMailCheck

Copyright © 2018 www.massapicom. 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.