Mageshkumar Maruthapillai wrote:

> Hi,
>
>      I just want to clarify a point regarding an entity bean objects.
>
> If say a customer table indexed on custid is to be exposed as entity
> objects. Assume that there is already
> a record with custid = "111".
>
> Now when 5 concurrent clients access this same entity bean, will the
> scenario be such that:
>
> a. in the ejb server, there will be 5 corresponding ejbObjects for the 5
> client respectively.
> b. all the 5 ejbObjects will reference the same instance(one) of the entity
> bean representing
>      that record.
>
> If the above is true, and certainly what I believe in. Then how is
> synchronization between
> difference ejbObjects making changes to the same entity bean implemented.
>
> Any comments will be very helpful.

AFIK, this is all container-dependent. Some containers will create 5
instances, some containers will create just one instance. How these
beans are synchroni\ed to the underlying datastore depends on the
transaction isolation level defined in your deployment descriptor.

The good thing about ejb is that you really don't have to worry too much
about this ;-)

By the way this is described in the specs section 9.1.11

sven

===========================================================================
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".

Reply via email to