Hi, One option is to use a 'state' column: 0=inactive, 1=in progress, 2=done. Then to process a row, update a row where state=inactive to state=in progress. After processing, set the state to done.
Regards, Thomas On Wed, Feb 1, 2012 at 6:00 PM, Fratiman Vladut <[email protected]> wrote: > I want to use H2 database in this scenario: > Multiple independent applications accessing the same database (using > hibernate). Each read a row, execute a sequence of code and updates > that row. I want every application to access a row exclusively, in > other words same row is not processed by two concurent applications. > How can this solution be implemented? > > Thanks in advance! > > -- > You received this message because you are subscribed to the Google Groups "H2 > Database" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/h2-database?hl=en. > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
