Package com.centraview.support.helper

Examples of com.centraview.support.helper.SupportHelper


    // schedule a job to check support email every x minutes
    int supportInterval = 0;
    try {
      SupportHelperHome supportHome = (SupportHelperHome)CVUtility.getHomeObject("com.centraview.support.helper.SupportHelperHome", "SupportHelper");
      SupportHelper supportRemote = supportHome.create();
      supportRemote.setDataSource(dataSource);
      supportInterval = supportRemote.getSupportEmailCheckInterval();
    } catch (Exception e) { }

    if (supportInterval > 0) {
      // minutes to seconds, then seconds to miliseconds...
      Integer interval = new Integer(supportInterval * 60 * 1000);
 
View Full Code Here


     
      Vector supportMailIds = (Vector)appRemote.getSupportMailId();
     
      try {
        SupportHelperHome supportHome = (SupportHelperHome)CVUtility.getHomeObject("com.centraview.support.helper.SupportHelperHome", "SupportHelper");
        SupportHelper supportRemote = (SupportHelper)supportHome.create();
        supportRemote.setDataSource(dataSource);
        int supportInterval = supportRemote.getSupportEmailCheckInterval();
        dynaForm.set("emailCheckInterval", new Integer(supportInterval));
      } catch (Exception e) {
        dynaForm.set("emailCheckInterval", new Integer(0));
      }
View Full Code Here

        // call EJB support helper to update DB
        SupportHelperHome supportHome = (SupportHelperHome)CVUtility.getHomeObject("com.centraview.support.helper.SupportHelperHome", "SupportHelper");
        try {
          // this updates the "supportEmailCheckInterval"
          // setting in the "systemsettings" table
          SupportHelper supportRemote = (SupportHelper)supportHome.create();
          supportRemote.setDataSource(dataSource);
          supportRemote.setSupportEmailCheckInterval(formInterval.intValue());
        } catch (Exception e) {
          // "Oh we're not gonna take it... No, we ain't gonna take it... Oh we're not gonna take it anymore..."
        }
        SettingsInterface settings = Settings.getInstance();
        // re-schedule JOB because it is currently running and
View Full Code Here

TOP

Related Classes of com.centraview.support.helper.SupportHelper

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.