Tuesday, August 5, 2003 03:06 AM
ejbCreate is NOT part of any of the interfaces.
As we know, ejbCreate() is for initializing some parameters that would be sent by the client and also creating a record in the database(in case of Enitity Beans).
Example, in case of Session Beans, client code can send 0/1/2/... number of arguments through the ejbCreate method. The number of arguments in the ejbCreate method is not known. Same is the case for Entity Beans, a record may have any number of fields which are to be sent through the ejbCreate method.
So its practically not possible to define the ejbCreate() method.
Hope you got it...
Tuesday, August 5, 2003 03:03 AM
ejbCreate() belongs to your Enterprise Java Bean, while create() belongs to the EJBHome interface of your bean...
All methods with the prefix ejb... are found inside of the bean code. (ejbCreate, ejbRemove, ejbLoad...). The corresponding methods missing the prefix are usually interface methods (EJBHome or EJBObject).