import org.objectweb.jotm.*;
public class JOTMExample {
public static void main(String[] args) {
TransactionManager tm = TransactionManagerFactory.getTransactionManager();
tm.start();
try {
tm.begin();
// ...
tm.commit();
} catch (Exception e) {
tm.rollback();
} finally {
tm.stop();
}
}
}