Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Constructor in EJB

843829Oct 25 2002 — edited Oct 29 2002
Can anybody explain me role of default parameterless constructor in EJB bean classes(session+entity).

is it compulsory to provide these constructors?

according to 2.0 spec (7.10.2) -
The session bean class must have one default pareterless constructor.

but, I have created a entity bean component( infact, using the JBuilder generated beans) which is not having any constructor, and still working fine.

Please help me clear this constructor concept for both entity and session bean.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2002
Added on Oct 25 2002
10 comments
625 views