hi everybody,
     One problem i have.
     I written one CMP Entity Bean . In that i have two methods. One is
having the selection of records from the database table.
    Another method is for Updation of records what i got from the previous
method
I given transaction attribute in jar as Required.
   It is fine for one client accessing the bean methods.

   But here another client2 opens the same screen and calling the first
method before the first client1 is in the transaction not yet committed.
  Here i dont want the Dirty reads and Nonrepeatble reads. for this the
Orielly given this code where i have to write this code in the bean

ControlDescriptor cd = new ControlDescriptor();
    cd.setTransactionAttribute(ControlDescriptior.TRANSACTION_READ_COMMITTED);
    cd.setMethod(null);
    ControlDescriptor [] cdArray = {cd};
    sd.setControlDescriptors(cdArray);
If i write the code in the bean it is giving error at compile time

Compiling C:\pramati_j2ee\Trans\TransPrj\ejb\DataBean\DataBean.java
ERROR:
C:\pramati_j2ee\Trans\TransPrj\ejb\DataBean\DataBean.java:34:Identifier
expected.:cd.setTransactionAttribute(ControlDescriptior.TRANSACTION_READ_COM
MITTED);
1 error
Done.

How to use this . If u have any idea please reply me asap.

Thanking u,


MURALI KRISHNA BALUSA
VELOCIENT TECHNOLOGIES
NEW DELHI.

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