2 Replies Latest reply on Jul 10, 2002 4:40 PM by dsundstrom

    Parameter null on ejbPostCreate

    rlentell

      Hi everyone,

      I am having a problem in the ejbPostCreate method setting CMR fields. Below you will find the code for my ejbCreate and ejbPostCreate. When ejbPostCreate is called the parameter companyDetail is null. CompanyDetail was not null in ejbCreate. I have no idea what I am missing . Can anyone help? Thanks

      Ryan


      public Integer ejbCreate(CompanyDetail companyDetail) throws RemoteException, CreateException
      {
      this.setCompanyId(GenericUtils.getUniqueIdentifier(Constants.COMPANY));
      this.setCoCode(companyDetail.getCode());
      this.setCoName(companyDetail.getName());

      return null;
      }//end ejbCreate

      public void ejbPostCreate(CompanyDetail companydetail) throws CreateException
      {
      System.out.println("companyDetail = " + companyDetail);

      this.setInstalledModules(GenericUtils.remoteCollectionToLocalCollection(companyDetail.getInstalledModules()));
      }//end ejbPostCreate