19-Recovery_Diskrecovery

This sample demonstrates automatic recovery of a persistent database.

How to Run

A database is opened and its current contents displayed. Then 10 records are created in separate transactions. On the 11th transaction the program exits to simulate a system failure. The next time the program executes the previously inserted 10 records appear showing that the transaction processing makes a separate recovery procedure unnecessary.

See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the \target\bin directory:

 
    19_recovery_diskrecovery
     

But it is more instructive to run it in your development environment debugger, stepping through the code.

Related Topics Link IconRelated Topics