posted 20 years ago
Hi shanti,
The create method in case of Session Bean is different from Entity Bean.
In case of Session Bean (Both Stateless and Stateful),the call to the
create method results in the creation of a Bean Instance
Where as in entity bean the create method is meant for inserting a row in the database, so one of the Beans will be pulled out from the pool to service the create request.
So unlike in Session Bean bean instances are not created. Unless you are not going to do an insert there is no need of a "create" method in Entity Bean.
Hope it helps.
SCJP,SCWCD,SCBCD,SCEA Part I