The blocking probably results from JBoss' pessimistic locking strategy. Optimistic locking is slowly working its way to the top of the JBoss todo list and is anticipated in the JBoss 3.0 release.
JBoss locking strategy is simplified and improved since the 2.2.2 release. You might find improved performance with 2.4. You might also try declaring your shared entity as read-only; cf. JBoss manual CMP section. Finally, try posting this question to the JBoss forum. Hope this helps. Fred Loney Spirited Software, Inc. www.spiritedsw.com ----- Original Message ----- From: "Richard Martin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 05, 2002 1:25 AM Subject: Re: Entity beans concurrent access > This seems very strange to me, surely it is a common requirement to have an entity represent a business object for which there is a small number of frequently accessed > instances used by the system. > > There must be a way of telling the Container to allow multiple access to the entity without waiting. > > Nanik Tolaram wrote: > > > Hi, > > > > I can think of 2 things, > > > > 1. Set the REENTRANT flag to true for entity bean A > > 2. Since entity bean A is not updated so you can flagged the DD to start a > > separate transaction for entity bean A OR no transaction. > > > > Hope that helps > > > > Cheers > > Nanik > > > > >From: Richard Martin <[EMAIL PROTECTED]> > > >Reply-To: Richard Martin <[EMAIL PROTECTED]> > > >To: [EMAIL PROTECTED] > > >Subject: Entity beans concurrent access > > >Date: Mon, 4 Mar 2002 16:09:46 +0000 > > > > > >I have an entity bean (A) that represents a small number of business > > >objects which are used by a large number of other entities (B). We are > > >never actually changing the data > > >in A, only reading it. > > > > > >Because we are not chaning the data there is no reason why two > > >threads/transactions shouldn't be able to read data from the entity at the > > >same time. However, we seem to be > > >getting threads going into a wait-state accessing A, the log shows millions > > >of lines of: > > > > > >[OperatorAccountEJB] LOCKING-WAITING (TRANSACTION) for id MGX001ctx.hash > > >3310756 tx:TransactionImpl:XidImpl [FormatId=257, > > >GlobalId=svr-mgx-ssa-j2e1.gw1.magex.com//53, > > >BranchQual=] > > > > > >Can the behaviour be modified such that other threads can concurrently read > > >the entity? Or is an entity bean fundamentally unsuitable for an object > > >with this type of access > > >pattern? > > > > > > > > >Rich. > > > > > >[JBoss-2.2.2, Sun jdk1.3.01, Linux/Solaris] > > > > > >======================================================================= ======= > > >This email and any files transmitted with it are confidential and intended > > >solely for the use of the individual or entity to whom they are addressed. > > >All information is the view of the individual and not necessarily the > > >company. If you are not the intended recipient you are hereby notified that > > >any dissemination, distribution, or copying of this communication and its > > >attachments is strictly prohibited. If you have received this email in > > >error please notify: > > >[EMAIL PROTECTED] > > > > > > > > >======================================================================= ======= > > > > > >======================================================================= ==== > > >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". > > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > > > > ======================================================================== === > > 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". > > > ======================================================================== ====== > This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. All information is the view of the individual and not necessarily the company. If you are not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication and its attachments is strictly prohibited. If you have received this email in error please notify: > [EMAIL PROTECTED] > > > ======================================================================== ====== > > ======================================================================== === > 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". > > =========================================================================== 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".
