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

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

package bitronix.tm.integration.jetty6;

import org.mortbay.component.AbstractLifeCycle;
import org.mortbay.log.Log;
import bitronix.tm.TransactionManagerServices;

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