> But if u provide a constructor
that takes some args than u have to explicitly provide the constructor that
takes
But of course, you cannot create a constructor with arguments for your
EJBeans... or you can, but the server will never use it. Hence, having a
explicit argument-less constructor for your beans is really just formality I
believe.
Gene
-----Original Message-----
From: A mailing list for Enterprise JavaBeans development
[mailto:[EMAIL PROTECTED]]On Behalf Of Bikram Bajwa
Sent: Wednesday, August 30, 2000 10:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Spec Clarification: constructors in EJBs
I think the examples donot have the constructor with no args as java
provides this by default as mentioned by Evan ....But if u provide a
constructor
that takes some args than u have to explicitly provide the constructor that
takes
no args....i think this may be the reason why the specs say that default
constructor
should be provided
______________________________________________________
Bikram Singh Bajwa
Electronic Commerce Group
L&T Information Technology Limited, Pune.
Contact Numbers : 020-5511262-321 (Office)
020-5813977 (Resi)
Alternate e-Mail : [EMAIL PROTECTED]
Evan Ireland <[EMAIL PROTECTED]> on 31-08-2000 09:57:22 AM
Please respond to A mailing list for Enterprise JavaBeans development
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
cc: (bcc: ECG Subscription/LTITLPUN)
Subject: Re: Spec Clarification: constructors in EJBs
Daniel Bradby wrote:
>
> I was cleaning up some EJB code and browsing through the bean providers
> responsibilities in the EJB spec (as one does) and noticed that the spec
> requires a session bean (6.10.2) and an entity bean (9.2.2) to " ....
> have a public constructor that takes no parameters."
>
> I noticed the only examples I could find that actually did this was
> Sun's, and they only do it in the session beans.
>
> Anyone throw any light on this strange requirement? And why no one
> actually does it?
If you have no constructor, then by definition you have a public constructor
with no arguments. Java provides it for you.
____________________________________________________________________________
____
Evan Ireland Sybase EAServer Engineering
[EMAIL PROTECTED]
Wellington, New Zealand +64 4
934-5856
===========================================================================
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".
===========================================================================
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".