Package net.sf.ehcache.transaction

Examples of net.sf.ehcache.transaction.TransactionIDFactory


            //set xa enabled
            if (configuration.isTerracottaClustered()) {
                configuration.getTerracottaConfiguration().setCacheXA(true);
            }
            SoftLockFactory softLockFactory = cacheManager.createSoftLockFactory(this);
            TransactionIDFactory transactionIDFactory = cacheManager.createTransactionIDFactory();

            // this xaresource is for initial registration and recovery
            EhcacheXAResource xaResource = new EhcacheXAResourceImpl(this, clusteredStore, transactionManagerLookup,
                    softLockFactory, transactionIDFactory);
            transactionManagerLookup.register(xaResource);
View Full Code Here


        if (terracottaClient.getClusteredInstanceFactory() != null && this.name == null) {
            this.name = CacheManager.DEFAULT_NAME;
        }

        TransactionIDFactory transactionIDFactory = createTransactionIDFactory();
        this.transactionController = new TransactionController(transactionIDFactory, configuration.getDefaultTransactionTimeoutInSeconds());

        ConfigurationHelper configurationHelper = new ConfigurationHelper(this, localConfiguration);
        configure(configurationHelper);
        status = Status.STATUS_ALIVE;
View Full Code Here

     * Create a TransactionIDFactory
     *
     * @return a TransactionIDFactory
     */
    TransactionIDFactory createTransactionIDFactory() {
        TransactionIDFactory transactionIDFactory;
        if (terracottaClient.getClusteredInstanceFactory() != null) {
            transactionIDFactory = terracottaClient.getClusteredInstanceFactory().createTransactionIDFactory(getClusterUUID());
        } else {
            transactionIDFactory = new TransactionIDFactoryImpl();
        }
View Full Code Here

TOP

Related Classes of net.sf.ehcache.transaction.TransactionIDFactory

Copyright © 2018 www.massapicom. 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.