Examples of create()


Examples of com.centraview.cvattic.CvAtticLocalHome.create()

    int transID = 0;
    try
    {
      InitialContext ctx = CVUtility.getInitialContext();
      CvAtticLocalHome home = (CvAtticLocalHome)ctx.lookup("local/CvAttic");
      CvAtticLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      transID = remote.getAtticTransactionID(indvID, dumpType, hm);
    }catch (Exception e){
      System.out.println("Error in sendToAttic(int) Method of Projects " + e);
      e.printStackTrace();

Examples of com.centraview.email.emailList.EmailLocalHome.create()

    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      EmailLocalHome home = (EmailLocalHome)ic.lookup("local/EmailList");
      EmailLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      emailList = (EmailList)remote.getEmailList(individualID, info);
    }catch(Exception e){
      System.out.println("[Exception][EmailFacadeBean.getEmailList] Exception Thrown: "+e);
      e.printStackTrace();

Examples of com.centraview.email.emailfacade.EmailFacadeHome.create()

    String dataSource = Settings.getInstance().getSiteInfo(CVUtility.getHostName(super.getServlet().getServletContext())).getDataSource();
    try
    {
      //System.out.println("Email : updateStatusHandler");
      EmailFacadeHome cfh = (EmailFacadeHome)CVUtility.getHomeObject("com.centraview.email.emailfacade.EmailFacadeHome","EmailFacade");
      EmailFacade remote =( EmailFacade )cfh.create();
      remote.setDataSource(dataSource);
      String headerName = Constants.EH_ATTENDEE_STATUS_KEY;
      String headerValue = status;
      //ejb call to update header 
      remote.updateHeader(userId,messageId,headerName,headerValue);

Examples of com.centraview.email.emailmanage.EmailManageLocalHome.create()

    try
    {
      //System.out.println("*** Try Block of emailMoveTo *** ");
      InitialContext ic = CVUtility.getInitialContext();
      EmailManageLocalHome home = (EmailManageLocalHome)ic.lookup("local/EmailManage");
      EmailManageLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      //System.out.println("*** Before calling of emailMoveTo *** ");
      result = remote.emailMoveTo( sourceId ,destId,mailIdList );
      //System.out.println("*** After calling of emailMoveTo *** ");
    }
 

Examples of com.centraview.email.folder.ManageFolderLocalHome.create()

    FolderList  folderList = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      ManageFolderLocalHome home = (ManageFolderLocalHome)ic.lookup("local/ManageFolder");
      ManageFolderLocal remote =  home.create();
      remote.setDataSource(this.dataSource);
      folderList = (FolderList)remote.getFolderList(userId );

    }
    catch(Exception e)

Examples of com.centraview.email.getmail.GetMailLocalHome.create()

    MailMessage  mailmessage = null;
       try
      {
        InitialContext ic = CVUtility.getInitialContext();
        GetMailLocalHome home = (GetMailLocalHome)ic.lookup("local/GetMail");
        GetMailLocal remote =  home.create();
        remote.setDataSource(this.dataSource);
        mailmessage = (MailMessage)remote.getMailMessage(userId , preference );

      }
      catch(Exception e)

Examples of com.centraview.email.helper.EmailHelperLocalHome.create()

    HashMap emailInfo = new HashMap();
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      EmailHelperLocalHome home = (EmailHelperLocalHome)ic.lookup("local/EmailHelper");
      EmailHelperLocal remote = (EmailHelperLocal)home.create();
      remote.setDataSource(this.dataSource);
      emailInfo = (HashMap)remote.getSystemEmailInfo(systemEmailID);
    }catch(Exception e){
      System.out.println("[Exception][EmailFacadeBean] Exception thrown in getSystemEmailInfo(): " + e);
      e.printStackTrace();    // TODO: remove stacktrace

Examples of com.centraview.email.mailDeliver.MailDeliverLocalHome.create()

      mm[0] = messagefile;
      messageMap.put( "message" , mm );
     
      InitialContext ic      = CVUtility.getInitialContext();
      MailDeliverLocalHome home  = (MailDeliverLocalHome)ic.lookup("local/MailDeliver");
      MailDeliverLocal remote    = home.create();
      remote.setDataSource(this.dataSource);
      // add message to db
      int newMessageID = remote.mailDeliverMessage( messageMap );
      return(newMessageID);
    }catch(Exception e){

Examples of com.centraview.email.rules.RulesManageLocalHome.create()

    RuleDetails  ruleList = null;
    try
    {
      InitialContext ic = CVUtility.getInitialContext();
      RulesManageLocalHome home = (RulesManageLocalHome)ic.lookup("local/RulesManage");
      com.centraview.email.rules.RulesManageLocal local =  home.create();
      local.setDataSource(this.dataSource);
      ruleList = (RuleDetails)local.getRuleDetails( ruleid);
    }
    catch(Exception e)
    {

Examples of com.centraview.email.savedraft.SaveDraftLocalHome.create()

    int messageid = 0;
    try
      {
        InitialContext ic = CVUtility.getInitialContext();
        SaveDraftLocalHome home = (SaveDraftLocalHome)ic.lookup("local/SaveDraft");
        SaveDraftLocal remote =  home.create();
        remote.setDataSource(this.dataSource);
        messageid = remote.saveDraft(userId , mailmessage );
      }
      catch(Exception e)
      {
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.