Does it have to call commit?
Cheers
-----Original Message-----
From: Evan Ireland
To: Jay Walters
Cc: [EMAIL PROTECTED]
Sent: 5/10/01 5:24 PM
Subject: Re: Placing entinty bean data back in storage
Jay Walters wrote:
>
> This is a very good question. Much of the value in using entity beans
is
> the fact that as a developer you need only write the methods to load
and
> store the bean and the container will manage calling them at the
proper
> times. Of course there is the caveat that one needs to choose the
proper
> transaction attributes.
>
> That being said, one ensures the changes are properly stored in the
database
> by making the changes to the entity bean within a transaction. Given
this,
> the container will take care of the rest.
Even if there is no transaction context the container has to call
ejbStore.
> Cheers
> Jay
>
> -----Original Message-----
> From: Nimmons, Buster [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 1:26 PM
> To: [EMAIL PROTECTED]
> Subject: Placing entinty bean data back in storage
>
> > After recently completing my first Entity bean assignment in which I
> > called home.create() to create a data object both in my database and
in
> > the entity bean, I noticed that at the end of the lesson we had to
call
> > home.remove() which not only removed the data from the in-memory
entity
> > bean but also from the database. According to my experience removing
> > database data is not done nearly as often as creating data. However
on an
> > EJB home object there is no save() method or anything like that. Are
we
> > simply to rely on the EJB container to call the EJBs store method
whenever
> > it deems it necessary. How do we assure that changes made to entity
bean
> > data gets saved to the database.
>
>
========================================================================
===
> 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".
--
________________________________________________________________________
________
Evan Ireland Sybase EAServer Engineering
[EMAIL PROTECTED]
Wellington, New Zealand +64 4
934-5856
===========================================================================
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".