The How does camunda engine uses Apache MyBatis internally for persistence?

I want to use ejbs to persist data into the H2 database using mybatis as a persistence layer. Some information in this direction would be a great help!