-
1. Re: waring?? illegal type
shogun1234 Apr 3, 2003 2:07 AM (in response to shogun1234)>Bean : CompanyData
>Method : public abstract CompanyData >findByPrimaryKey(BanNoPK) throws RemoteExce
>ption, FinderException
>Section: 12.2.9
> "Warning: The method return types defined in an
> Entity
> beans home interface MUST be legal types for
> RMI/IIOP."
via the way, the only method defined in home interface is findByPrimaryKey() and its return type is Remote interface
public CompanyData findByPrimaryKey(BanNoPK BanNo) throws RemoteException, FinderException;
beside, return type of the method defined in BMP is PK class -
public BanNoPK ejbFindByPrimaryKey(BanNoPK banNoPK) throws FinderException.
> and
>Bean : CompanyProcession
CompanyProcession is a Session Bean
>Method : public abstract CompanyProcession >create() throws CreateException, Remo
>teException
>Section: 7.10.6
> "Warning: The method return values in the home
> interface
> must be of valid types for RMI/IIOP."
in home interface :
public CompanyProcession create() throws CreateException, RemoteException;
in Bean class:
public void ejbCreate(){