Some sample code that uses the transactional API can be found in the sample code that comes with the TMCore installation.