Raphael Bousquet wrote:
>
> Hi,
>
> could someone describe how the entity bean passivation works?
> is there a way to configure the number of entity bean currently active?
>
> I actually would like to maintain active all my entity beans (as long as
> they fit in memory) because the loading time is really long.
>
> Also, what are the rules behing the ejbLoad and ejbStore?? is this related
> only to the transaction parameter, or does jonas look for any change in the
> bean's attribute (how deep???)???
>
> Thank you for any answer...
>
> rb of ltu
Hi,
passivation/activation of entity beans depend if you use transactions or
not.
if you do not use transactions (you never start transactions and you
have
set transactional attributes "Never" , "Supports", or "NotSupported" for
all the methods of your beans) then no passivation will occur, except
after
a timeout (that will be configurable in next version). Today, the
timeout
value is 30 seconds.
If you use transactions, either explicitly, or implicitly (transactional
attribute "Required" for example), then the activation will occur at
beginning
of each transaction, and passivation will occur at the end of the
transaction committed.
If you mix transactional request and non transactional requests, each
transaction
will lead to a passivation of instance used outside transactions before
activation
(without waiting for the timeout). You cannot have at the same time an
instance
involved in a transaction and in a request outside transactions.
Notice that when we talk about passivation/activation, only the instance
state
is concerned. A pool of entity bean instances is managed by the
container so that
only the ejbLoad and ejbStore are called, but not all the loading of
your bean!
I hope this was clear enough...
Regards,
--
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".