"Gintaut Andreas (PN-CCS/D)" wrote:
> 
> Hi,
> I just read the chapter about passivation strategy of jonas in the
> jonas-doc.
> 
> Here is the part I have trouble with:
> 
> "Entity bean instances are passivated at the end of the transaction, and
> reactivacted at the beginning of the next transaction. In case these
> instances are
> accessed outside any transaction, their state is kept in memory to improve
> performances. However a passivation will occur in 3 circumstances:
> 
>   1.When the bean is unloaded from the server, at least when the server is
> stopped
>   2.When a transaction is started on this instance
>   3.After a configurable timeout. This may be interesting to be sure that
> the bean state is periodically stored on disk, if the bean is always
> accessed with no
>     transaction."
> 
> Is point 2 really true? Shouldn't it be "When a transaction ends on this
> instance"?
> I don't want to be petty, I only want to avoid that I misundestand the
> stuff!
> 
> Thanks in advance
> 
> Andreas
        Hi Andeas,
The jonas doc is good. The point is that you must synchronize database
at the beginning of the transaction in order to retrieve this state
if the transaction is rolled back.
If I write it only at the end, it will work (faster!) in most cases
because we avoid an ejbStore(), but we will have a problem in case of
rollback.
        Philippe


-- 
Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]
-> Download our EJBServer at http://www.evidian.com/ejb <-
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to