Package com.centraview.common.helper

Examples of com.centraview.common.helper.CommonHelperLocalHome


  public Vector getAllSource()
  {
    Vector allSource = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      CommonHelperLocalHome home = (CommonHelperLocalHome)ic.lookup("local/CommonHelper");
      CommonHelperLocal local = home.create();
      local.setDataSource(this.dataSource);
      allSource = local.getAllSource();
    } catch (Exception e) {
      System.out.println("Failed in getting All Sale Source");
      e.printStackTrace();
View Full Code Here


      }// end of if (oVO.getSourceID() > 0)
      else {
        String sourceName = oVO.getSource();
        if (sourceName != null && !sourceName.equals("")) {
          try {
            CommonHelperLocalHome helperHome = (CommonHelperLocalHome)ic
                .lookup("local/CommonHelper");
            CommonHelperLocal helperRemote = helperHome.create();
            sourceID = helperRemote.getSourceID(sourceName);
          }// end of try block
          catch (Exception e) {
            logger.error("[addOpportunity]: Exception", e);
          }// end of catch Block
View Full Code Here

      } else {
        String sourceName = oVO.getSource();
        if (sourceName != null && !sourceName.equals("")) {
          try {
            InitialContext ic = CVUtility.getInitialContext();
            CommonHelperLocalHome helperHome = (CommonHelperLocalHome)ic
                .lookup("local/CommonHelper");
            CommonHelperLocal helperRemote = helperHome.create();
            sourceID = helperRemote.getSourceID(sourceName);
          } catch (Exception e) {
            logger.error("[updateOpportunity]: Exception", e);
          }// end of catch Block
        }// end of if (sourceName != null && !sourceName.equals(""))
View Full Code Here

TOP

Related Classes of com.centraview.common.helper.CommonHelperLocalHome

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.