I have the following SessionBean method and want to block other clients when
they try to call checkValue() if another client is already in the critical
section.  Further, I need to execute an update to the enity bean and another
entity bean in a transaction.

Can I do this using transactions and isolation levels in EJB?

MySessionBean
{
  mySessionBeanMethod()
  {
     // start crtical section
     if (myEntityBean.checkValue())
     {
       // start transaction
       myOtherEntityBean.update();
       myEntityBean.update();
       // end transaction
     }
     // end critical section
  }
}

Thanks,
Bill

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