Package org.jboss.soa.esb.common

Examples of org.jboss.soa.esb.common.TransactionStrategy


            }
            /*
             * Can't do lockstep wait here because otherwise the transaction may not terminate if this
             * is the transaction controller thread!
             */
            final TransactionStrategy txStrategy = TransactionStrategy.getTransactionStrategy(true) ;
            try
            {
                txStrategy.enlistResource(new InVMXAResource(inVMEpr, addedObject, InVMXAResource.Operation.INSERT));
            }
            catch (final TransactionStrategyException tse)
            {
                throw new InVMException("Unexpected error enlisting transaction resource", tse) ;
            }
View Full Code Here


                 */
                if (LOGGER.isDebugEnabled())
                {
                    LOGGER.debug("Pickup enlisting transactional resource for service " + serviceId) ;
                }
                final TransactionStrategy txStrategy = TransactionStrategy.getTransactionStrategy(true) ;
                try
                {
                    txStrategy.enlistResource(new InVMXAResource(inVMEpr, msgObject, InVMXAResource.Operation.REMOVE)) ;
                }
                catch (final TransactionStrategyException tse)
                {
                    throw new InVMException("Unexpected error enlisting transaction resource", tse) ;
                }
View Full Code Here

        throws InVMException
    {
        boolean transactional;
        try
        {
            TransactionStrategy txStrategy = TransactionStrategy.getTransactionStrategy(true);
            Object txHandle = ((txStrategy == null) ? null : txStrategy.getTransaction());
            boolean isActive = ((txStrategy == null) ? false : txStrategy.isActive());

            transactional = (txHandle != null);

            /*
            * Make sure the current transaction is still active! If we
View Full Code Here

            }
            /*
             * Can't do lockstep wait here because otherwise the transaction may not terminate if this
             * is the transaction controller thread!
             */
            final TransactionStrategy txStrategy = TransactionStrategy.getTransactionStrategy(true) ;
            try
            {
                txStrategy.enlistResource(new InVMXAResource(inVMEpr, addedObject, InVMXAResource.Operation.INSERT));
            }
            catch (final TransactionStrategyException tse)
            {
                throw new InVMException("Unexpected error enlisting transaction resource", tse) ;
            }
View Full Code Here

                     */
                    if (LOGGER.isDebugEnabled())
                    {
                        LOGGER.debug("Pickup enlisting transactional resource for service " + serviceId) ;
                    }
                    final TransactionStrategy txStrategy = TransactionStrategy.getTransactionStrategy(true) ;
                    try
                    {
                        txStrategy.enlistResource(new InVMXAResource(inVMEpr, msgObject, InVMXAResource.Operation.REMOVE)) ;
                    }
                    catch (final TransactionStrategyException tse)
                    {
                        throw new InVMException("Unexpected error enlisting transaction resource", tse) ;
                    }
View Full Code Here

        {
            throw new JMSException("Session no longer valid") ;
        }
        if (!connectionPool.isAssociated(this))
        {
            final TransactionStrategy transactionStrategy = TransactionStrategy.getTransactionStrategy(true) ;
            try
            {
                if (!transactionStrategy.isActive())
                {
                    throw new JMSException("No active transaction") ;
                }
               
                transactionStrategy.registerSynchronization(this) ;
                setSuspect(true) ;
                final XAResource resource = xaSessionDelegate.getXAResource() ;
                transactionStrategy.enlistResource(resource) ;
            }
            catch (final TransactionStrategyException tse)
            {
                final JMSException ex = new JMSException("Failed to initialise transaction resources") ;
                ex.initCause(tse) ;
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.common.TransactionStrategy

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.