Package bitronix.tm

Examples of bitronix.tm.BitronixTransactionManager.shutdown()


    public static void cleanUp(HashMap<String, Object> context) {
        if (context != null) {
           
            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }
           
            Object emfObject = context.remove(ENTITY_MANAGER_FACTORY);
            if (emfObject != null) {
                try {
View Full Code Here


    public static void tearDown(HashMap<String, Object> context) {
        if (context != null) {
           
            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }
           
            Object emfObject = context.remove(ENTITY_MANAGER_FACTORY);
            if (emfObject != null) {
                try {
View Full Code Here

        log.info(String.format("Started JTA for server ID '%s'.", conf.getServerId()));
  }

  public void stop(BundleContext context) throws Exception {
    BitronixTransactionManager tm = (BitronixTransactionManager) TransactionManagerServices.getTransactionManager();
        tm.shutdown();

        tmRegistration.unregister();
        utRegistration.unregister();

        for (ServiceRegistration reg : dsRegistrations.values()) {
View Full Code Here

    public static void cleanUp(HashMap<String, Object> context) {
        if (context != null) {
           
            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }
           
            Object cmObject = context.remove(EnvironmentName.ENTITY_MANAGER_FACTORY);
            if (cmObject != null) {
                try {
View Full Code Here

                }
            }

            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }

        }
       
    }
View Full Code Here

    public static void cleanUp(HashMap<String, Object> context) {
        if (context != null) {
           
            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }
           
            Object emfObject = context.remove(ENTITY_MANAGER_FACTORY);
            if (emfObject != null) {
                try {
View Full Code Here

    public static void cleanUp(HashMap<String, Object> context) {
        if (context != null) {
           
            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }
           
            Object emfObject = context.remove(ENTITY_MANAGER_FACTORY);
            if (emfObject != null) {
                try {
View Full Code Here

    public static void cleanUp(HashMap<String, Object> context) {
        if (context != null) {
           
            BitronixTransactionManager txm = TransactionManagerServices.getTransactionManager();
            if( txm != null ) {
                txm.shutdown();
            }
           
            Object emfObject = context.remove(ENTITY_MANAGER_FACTORY);
            if (emfObject != null) {
                try {
View Full Code Here

        assertTrue(c.getAutoCommit());
        c.close();

        tm.commit();

        tm.shutdown();
    }

    public void testAutoCommitFalseWhenEnlisted() throws Exception {
        Thread.currentThread().setName("testAutoCommitFalseWhenEnlisted");
        BitronixTransactionManager tm = TransactionManagerServices.getTransactionManager();
View Full Code Here

        assertFalse(c.getAutoCommit());
        c.close();

        tm.commit();

        tm.shutdown();
    }

    public void testAutoCommitTrueWhenEnlistedButSuspended() throws Exception {
        Thread.currentThread().setName("testAutoCommitTrueWhenEnlistedButSuspended");
        BitronixTransactionManager tm = TransactionManagerServices.getTransactionManager();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.