[EMAIL PROTECTED] wrote:
> 
> Can anybody explain to me what that entity bean's "reentrant" flag in the DD works 
>like? What is the meaning of "reentrant=true"? For what do I need this?
For the meaning of this flag, you can refer to EJB specs.
But I can explain how JOnAS uses it:
Entity beans may be accessed in transactions, or out transactions.
Since JOnAS 2.2, transaction isolation is managed inside JOnAS. So, if
2 different transactions try to access the same bean (same PK),
a serialization is done by the container. The flag "Reentrant" is not
taken in account in that case.
If a client try to access an entity bean with no transaction context,
it will be blocked if a transaction is already running on it, or
if the flag is "rentrant=false" and that another client (with no transaction)
is already running this entity bean. On the contrary, if the flag has
been set "Reentrant=true", 2 clients may run concurrently the same bean
instance outside any transaction context. This can improve performance
in case of multiple clients accessing beans for read only.

-- 
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