All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bitronix.tm.integration.jetty7.BTMLifeCycle Maven / Gradle / Ivy

There is a newer version: 2.1.4
Show newest version
package bitronix.tm.integration.jetty7;

import bitronix.tm.TransactionManagerServices;
import org.eclipse.jetty.util.component.AbstractLifeCycle;
import org.eclipse.jetty.util.log.Log;

public class BTMLifeCycle extends AbstractLifeCycle {

    protected void doStart() throws Exception {
        Log.info("Starting Bitronix Transaction Manager");
        TransactionManagerServices.getTransactionManager();
    }

    protected void doStop() throws Exception {
        Log.info("Shutting down Bitronix Transaction Manager");
        TransactionManagerServices.getTransactionManager().shutdown();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy