Very Simple question
2 posts in topic
Flat View  Flat View

Posted By:   Rohit_Vadera
Posted On:   Tuesday, August 5, 2003 02:33 AM

To which class does create() and ejbCreate() methods belong.

I m finding them in documentation.Not in interfaces



Found remove() and ejbRemove() but confirm for it also


Re: Very Simple question

Posted By:   Anonymous  
Posted On:   Tuesday, August 5, 2003 03:06 AM

Hi Rohit,

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...

Re: Very Simple question

Posted By:   Christian_Neuroth  
Posted On:   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).
About | Sitemap | Contact