This sample demonstrates the use of a technique called “persistent events queue”. The log reader not only iterates objects but also receives events declared in the database schema and registered by the reader application. Function
mco_translog_play()
, which is an extended version ofmco_translog_iterate()
, provides the ability to register event handlers in a reader and catch these events while iterating a log.
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:tlogitereventsBut it is more instructive to run it in your development environment debugger, stepping through the code.