You can probably also go through Oriely's book on EJB...
DP
> -----Original Message-----
> From: Dane Jones [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, April 16, 2001 5:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Basic Theory Question
>
> So the client doesn't call create(), just one of the finder methods?
>
> I am reading up on this as well. I've currently got Roman's Mastering
> EJBs,
> the J2EE developer's guide and an "Instant EJB" text. Is there another
> text
> that anyone can recommend to complement these?
>
> thanks again for all your help
>
> DJ
>
> >ejbCreate() is not invoked when an entity bean is created for an
> >existing row.
>
> >For an existing row, the container will invoke the following
> >* newInstance()
> >* setEntityContext(...)
> >* ejbActivate()
> >* ejbLoad()
>
> >The first two steps are not necessary if there is already a pooled
> >instance of the class available.
>
> >Vance
>
> >Vance Christiaanse
> >Cintech Consulting
>
> >Dane Jones wrote:
> >
> >Thanks Dion for your quick response.
> >
> >However your answer is actually the very cause of my confusion.
> >
> >As far as I can tell, the ejbFind*() methods are called after the
> >ejbCreate() is invoked. Is that correct? In that case, if cust
> >already exists (I don't mean _cust_ per se, but the table row that will
> be
> >used to fill the EJB's attributes) what's the point of an
> >INSERT statement within ejbCreate() when it's already there and the
> >ejbFind*() method can retrieve the existing record?
> >
> >Does the ejbCreate() method *have* to contain an INSERT statement (for
> >BMP)?
> >And does the ejbRemove() method have
> >to contain a DELETE statement?
> >
> >I know I'm missing something quite logical, and this is making me feel
> >quite
> >stupid.
> >
> >Again, thanks for your help on this
> >
> >Cheers
> >
> >DJ
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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".