There is no requirement in the EJB spec for the container to synchronize
access to beans. In fact, in normal practice this is a very poor way to
design the container. It is prone to deadlocks and really kills the
throughput of the system.
If you have two separate transactions using the same entity bean (same home
and same pk) there will be two copies of that bean in the container. This is
SOP (standard operating procedure) for all EJB containers.
Concurrency control (what you are really referring to) is performed at the
database (or persistence framework) level.
jim
> -----Original Message-----
> From: Sita Singh [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 26, 2001 8:59 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [JBoss-user] Commit Option A
>
>
> This message was sent from Geocrawler.com by "Sita Singh" <[EMAIL PROTECTED]>
>
> This means that there could be many instances of
> a particular entity bean in the cache. I wonder
> how do they manage to synchronize different
> instances of the same bean withoud giving a call
> to ejbLoad() ?
>
> Regards,
> SRP
>
>
> ---------------------------------------
> I doubt that there is any serialization going on.
> The only container that I
> know of that serialized acces to any beans was
> the older versions of
> WebLogic. I believe newer versions have to be
> configured to work that way.
>
> It was a really poor design, especially because
> it couldn't be enforced in
> multi-VM environments.
>
> jim
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]
> On Behalf Of Sita Raman
> > Singh
> > Sent: Wednesday, April 25, 2001 6:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] Commit Option A
> >
> >
> > Hi,
> > Does Commit Option A in JBOSS serializes
> the transactions ?
> >
> > I am thinking about the performance. Since with
> Option A container has
> > exclusive access to its data, it doesn't need
> to load on start
> > transaction and thus improving performance. But
> if in order to acheive
> > this it serializes the transactions then it
> might degrade the
> > performance.
> >
> > Please comment.
> >
> > Regards,
> > SRP
> >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> >
> http://lists.sourceforge.net/lists/listinfo/jboss-
> user
> >
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-
> user
>
>
>
> Geocrawler.com - The Knowledge Archive
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user