Package org.jboss.soa.esb.common

Examples of org.jboss.soa.esb.common.TransactionStrategy.enlistResource()


             * 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


                    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

             * 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

                        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

                }
               
                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
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.