This sample demonstrates automatic recovery of a persistent database.
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_diskrecoveryBut it is more instructive to run it in your development environment debugger, stepping through the code.