Well, I can't speak to EJB 1.1, but in 2.0 you need to init all your CMP 
relationship fields in the postcreate method. Basically, anything you ned 
to do after your bean really exists can be done here.

Jim

--On Wednesday, April 25, 2001 9:10 AM -0700 Steve Zhang 
<[EMAIL PROTECTED]> wrote:

> hi:
> I am curiouse about why we should use ejbPostCreate(..). I saw some
> exampels, but I dont know how to use that function..
> any one can help me?
>
>
> -----Original Message-----
> From: danch [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 25, 2001 8:55 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] BMP ans ejbStore
>
>
>
>
> [EMAIL PROTECTED] wrote:
>>
>> Danch wrote:
>> > The container doesn't know that your getter doesn't have side effects
>> > that modify data.
>>
>> How common is it for a getter to modify data?  It seems like this should
> not be
>> the default behavior.
>
> The container doesn't distinguish a getter from any other method. This
> is the way the spec is written.
>
>> Maybe there should be a parameter in the <container-configuration>
>> section
> of
>> the jboss.xml file that turns this calling of ejbStore on and off.  That
> way you
>> could control it on a bean by bean basis, and improve the overall
> efficiency of
>> the entity beans.
>
> Or implement 'isModified' on your beans, which will also work in
> WebLogic.
> Confidential e-mail for addressee only.  Access to this e-mail by anyone
> else is unauthorized.
> If you have received this message in error, please notify the sender
> immediately by reply e-mail
> and destroy the original communication.
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



********************************************
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to