I used following code for calling the CMP EJB,
initial.lookup("java:comp/env/ejb/myDocumentSetting");
DocumentSettingHome home =
(DocumentSettingHome)PortableRemoteObject.narrow(objref,
DocumentSettingHome.class);
But the error is :'DocuemntSettingHome can not be found in the class'