See, this is a container specific question. Each vendor has his own way of implementing it. If the same bean(primary key) is being used by others depending on the kind of concurrency control stratgey(optimistic or pessimistic) thing happen (wait for the lock to be released or creat another instance of the stub and give it to the client). But your mind model is correct, you can take it that way.
Kris -----Original Message----- From: ejblist ejb [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 4:36 AM To: [EMAIL PROTECTED] Subject: EJB - Primary Key Hi : I was just reading the EJB Specs and was just wondering about the primary key concept.Lemme Give you the scenario which i was thinking. 1. Let's say we create an Entity bean do some business operations and log out of the system. 2. Again we get a reference of the previously created bean using the home.findByPK() method which returns me the stub of the remote interface for further operations. Is it that the container goes to the pool (let's assume the ejb instance is returned back to the pool) picks up any arbitrary bean instance, queries the Datastore, get the data, initialize my bean instance,attach the instance with the remote object or is there any other flow of the process. I just want to know the internals as to what actually goes behind the scene. Thankx _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx =========================================================================== 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".
