Package com.centraview.sale.opportunity

Examples of com.centraview.sale.opportunity.OpportunityLocalHome.create()


  {
    HashMap opportunityRelatedInfo = new HashMap();
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OpportunityLocalHome home = (OpportunityLocalHome)ic.lookup("local/Opportunity");
      OpportunityLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      opportunityRelatedInfo = remote.getOpportunityRelatedInfo(userId, opportunityId);
    } catch (Exception e) {
      System.out.println("Failed in SaleFacade geting Opportunity Related Info");
      e.printStackTrace();
View Full Code Here


  {
    String opportunityID = "0";
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OpportunityLocalHome home = (OpportunityLocalHome)ic.lookup("local/Opportunity");
      OpportunityLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      opportunityID = remote.getOpportunityID(activityId);
    } catch (Exception e) {
      System.out.println("Failed in SaleFacade geting Opportunity ID when we pass ActivityID ");
      e.printStackTrace();
View Full Code Here

    OpportunityVO oVO = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OpportunityLocalHome home = (OpportunityLocalHome)ic.lookup("local/Opportunity");
      OpportunityLocal remote = home.create();
      remote.setDataSource(this.dataSource);
      oVO = remote.getOpportunity(userId, opportunityId);

    } catch (Exception e) {
      System.out.println("Failed in SaleFacade geting Opportunity");
View Full Code Here

  {
    String opportunityName = "";
    try {
      InitialContext ic = CVUtility.getInitialContext();
      OpportunityLocalHome home = (OpportunityLocalHome)ic.lookup("local/Opportunity");
      OpportunityLocal local = home.create();
      local.setDataSource(this.dataSource);
      opportunityName = local.getOpportunityName(OpportunityID);
    } catch (Exception exe) {
      exe.printStackTrace();
    }
View Full Code Here

        // if we have any results from the query set up the connection
        // to the local Opportunity session EJB
        InitialContext ctx = new InitialContext();
        OpportunityLocalHome opportunityHome = (OpportunityLocalHome)ctx
            .lookup("local/Opportunity");
        OpportunityLocal opportunityBean = opportunityHome.create();
        opportunityBean.setDataSource(dataSource);
        // the iterate through the results of the query grabbing an
        // OpportunityVO for each id.
        Iterator i = result.iterator();
        while (i.hasNext()) {
View Full Code Here

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.