In CMP ejbLoad() is called just after the container loads the data, and
ejbStore is called just before the container will save the data.
IMHO it is possible to do some JDBC-update here, but I am not sure if this
is good practice.
----- Original Message -----
From: "Juan Pablo Lorandi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 22, 2000 5:58 PM
Subject: Re: CMP or BMP for dependent objects
> Of course, ejbStore&ejbLoad are called AFTER the DB has been updated.(well
,
> maybe I'm wrong WHEN exactly); but the container will interact with the db
> anyway; you can't override it. Well, YOU CAN, it's called BMP.... and you
> would have flat bean properties.
>
> -----Original Message-----
> From: Nikolaus Rumm [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 22, 2000 10:04 AM
> To: [EMAIL PROTECTED]
> Subject: CMP or BMP for dependent objects
>
>
> Should I use CMP or BMP for entity beans that wrap dependent objects ?
>
> The problem is that I want to use the benefits of CMP for the flat bean =
> properties, but the dependent objects must be made persistent in a =
> customized way using simple JDBC calls. Does it violate any =
> specificytion or known good practise to persist the dependent objects =
> using ejbLoad / ejbStore callback methods in CMP ?
>
> Thx
>
> Nikolaus
>
>
===========================================================================
> 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".