Dear All!

Please forgive me if these questions has already been asked, actually our
internet is too slow to access the whole EJB subscription over the net.

I have following questions

   For example, I have a BMP entity EJB and it also has a primary key. How does
   container handles the concurrency requirements. Like If one client calls
   findbyPrimaryKey("12") and it is given the Remote interface. Now an another
   calls findByPrimaryKey("12")? what the container will do ? It will block the
   second client or every client will be thier own copy? Do i need to do any
   dirty reading checking like (balance was 24 when EJB read the row or row is
   present in the database)? It will require extra programming ? should we do
   it?

   We have used Connection (java.sql) objects in our ejbLoad and ejbStore code?
   But by default connection object is *autocommit* and every EJB example uses
   it in default mode? What internally happens? How container inetercept the
   connection object calls (if it was not obtained from the DataSource)? Should
   we do any commit stuff ourself or not?

   Whenever any of our BMP EJBs method is called? The ejbLoad and ejbStore is
   also called? How  can I stop doing it? As I want Object scope Transactions
   management ?

   Should we have the Primary Key one to one corresponding to the Database table
   PK or it can be customized to do some optimizations? If we can do that then
   how container will be able to do locking on the rows?


   Fareed Ahmad

_________________________________________________________________________

Disclaimer:

"Any  unauthorized  form of reproduction of this message is strictly prohibited.
The  bank  does  not  guarantee  the  security of any information electronically
transmitted  and  is  not liable for the proper and complete transmission of the
information  contained  in this communication, nor for any delay in its receipt.
THE  USE  OF  EMAIL  FOR  ANY  ILLEGAL  PURPOSE OR FOR ANY PURPOSE OTHER THAN AS
PERMITTED  BY  THE  BANK  IS  STRICTLY  PROHIBITED  AND  SUCH  USE MAY RESULT IN
DISCIPLINARY AND LEGAL ACTION."

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