hi, i think the varifier wont check this since the PK which u r returning may actually pointing 2 a null reference.(i'm not sure abt this).But the deployment tool will (shud) check this.EJB Spec mandates this as to allow BMP bean to subclass an CMP bean.(in BMP U must retrun PK from UR ejbCreate()). In cmp PK will b set onli after the ejbCreate() returns and b4 ejbPostCreate(...) is invoked.
The verifier/deployment tool can only check the return type but NOT the return 'value' of ejbCreate() because the return value is unknown until runtime. The verifier can only do a 'static' check on the EJBs. [ February 16, 2005: Message edited by: Keerthi P ]