-----Original Message-----
From: Steven Warren [mailto:steve@MYVEST.COM]
Sent: сряда 02.7.2003 г. 11:11
To: J2EE-INTEREST@JAVA.SUN.COM
Cc:
Subject: Re: How many instance of Entity BeanDimitar, re-entry really doesn't have anything to do with the number of bean instances. The re-entrant attribute controls whether a given instance can be called recursively within a transaction. For example:ABean invokes BBean invokes CBean invokes ABean(different method)This is independent of how many bean instances a container will use. As already written, the number of instances is up to the container and which commit option they support/implement (commit option A, B or C). Option A basically guarantees at most a single bean instance per database record. Options B and C allow for (but don't require) multiple bean instances for a given database record to allow for concurrent updating of data.IMO Commit Option A is useless...There is no option (as far as I know) to allow multiple transactions (clients) to access the same bean instance at the same time.RegardsSteve-----Original Message-----
From: A mailing list for Java(tm) 2 Platform, Enterprise Edition [mailto:J2EE-INTEREST@JAVA.SUN.COM] On Behalf Of Dimitar Stavrakov
Sent: Wednesday, July 02, 2003 5:12 AM
To: J2EE-INTEREST@JAVA.SUN.COM
Subject: Re: How many instance of Entity BeanIt should be up to the container provider to decide how many instances of the bean to create. The transaction management would differ depending on how you define your entity bean in the deployment descriptor. If you define it as re-entrant then more than one client can execute operations on it at the same time and transaction, or if defined as non-reentrant then if a client makes a call on the bean, while its in a transaction, the bean will throw an exception.Regards,Dimitar-----Original Message-----
From: Sameer Sadanand Menon [mailto:SameerS@VIRTUSA.COM]
Sent: сряда 02.7.2003 г. 06:37
To: J2EE-INTEREST@JAVA.SUN.COM
Cc:
Subject: How many instance of Entity BeanHey guys,
One thing has been intriguing me for a long time.
If 3 seperate clients had to fire a findbyprimarykey(PK) on the same Entity
Bean, then how many instances of Beans are created on the same primary Key.
And how does the Transaction Manager do the Transaction Mgmt on the same.
Thanking you.
Regards,
Sameer S Menon
Virtusa Corp
<mailto:sameers@virtusa.com> sameers@virtusa.com
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff J2EE-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".