Hi!
As i understand it the findByPrimaryKey calls ejbLoad using the primarykey
returned by the findByPrimaryKey method.
Well, what's the reason for the spec. saying: "The implementation of the
findByPrimaryKey(primaryKey) method must ensure that the entity object
exists."

Will that say i have to first issue a SELECT... from the database just to
see if the entity exist and then the container invokes the ejbLoad (which
contains the same SELECT)????
If thats the case, isn't that a litte much overhead?

I kind of thought this was what happened:
1: ejbHome calls a entitybean (using ejbObject??)
2: the entitybean returns the pk
3: the ejbHome tries to find a matching entity
4: Assigns the new entity to a ejbObject(creating it?) and returns a ref.

Any light on this one?
Whats happening?

/Jon

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

Reply via email to