Hi Pranav, setting an isolation level of REPEATABLE_READ seems to be the solution in your case. And whatever bean you maybe the isolation level is a property of the datasource. You can use the APIs of the Connection to set the isolation level.
-Sumesh Pranav Shah wrote: > Hi All > I want my database row to be accesable from only one user. > I mean , when one user has accessed that row, no other user can > access that row. > > 1) how to do this ? if i am using Entity bean to fetch that row > from Database ? > 2) how to do this ? if i am using session bean to fetch that row > from Database ? > > let me know u r views > > Thanks in Advance > > Pranav > > Thanks > Pranav Shah > Software Engineer > http://www.pranav.itgo.com > > =========================================================================== > 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".
