>My question : If the container ignores the return value, why does the
method
prototype require a return type?
Forward compatibility with BMP, which does require you returning the PK. If
you decide to switch from CMP to BMP, you don't have to modify your
interface!
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Shiv Kumar
Sent: Monday, August 21, 2000 1:33 AM
To: [EMAIL PROTECTED]
Subject: ejbCreate() prototype
Section 9.4.2 of EJB 1.1 spec (Entity beans with CMP) :
The ejbCreate(...) methods must be defined to return the primary key
class type. The implementation of the ejbCreate(...) methods should be
coded to return a null. The returned value is ignored by the
Container.
My question : If the container ignores the return value, why does the method
prototype require a return type?
TIA.
--
shiv
[EMAIL PROTECTED]
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".