Package org.apache.openejb.core.stateful

Examples of org.apache.openejb.core.stateful.SessionSynchronizationTxPolicy


                    policy = new MessageDrivenBeanManagedTxPolicy((TransactionContainer) container);
                }
            } else if (componentType == BeanType.STATEFUL) {
                policy = new TxRequired((TransactionContainer) container);
                if (!isBeanManagedTransaction && SessionSynchronization.class.isAssignableFrom(beanClass)) {
                    policy = new SessionSynchronizationTxPolicy(policy);
                } else {
                    policy = new StatefulContainerManagedTxPolicy(policy);
                }
            } else {
                // default transaction policy is required
View Full Code Here


        if (componentType == BeanType.STATEFUL && !isBeanManagedTransaction && container instanceof TransactionContainer) {

            if (SessionSynchronization.class.isAssignableFrom(beanClass)) {
                if (!transAttribute.equals("Never") && !transAttribute.equals("NotSupported")) {
                    policy = new SessionSynchronizationTxPolicy(policy);
                }
            } else {
                policy = new StatefulContainerManagedTxPolicy(policy);
            }
        }
View Full Code Here

                    policy = new MessageDrivenBeanManagedTxPolicy((TransactionContainer) container);
                }
            } else if (componentType == BeanType.STATEFUL) {
                policy = new TxRequired((TransactionContainer) container);
                if (!isBeanManagedTransaction && SessionSynchronization.class.isAssignableFrom(beanClass)) {
                    policy = new SessionSynchronizationTxPolicy(policy);
                } else {
                    policy = new StatefulContainerManagedTxPolicy(policy);
                }
            } else {
                // default transaction policy is required
View Full Code Here

        if (componentType == BeanType.STATEFUL && !isBeanManagedTransaction && container instanceof TransactionContainer) {

            if (SessionSynchronization.class.isAssignableFrom(beanClass)) {
                if (!transAttribute.equals("Never") && !transAttribute.equals("NotSupported")) {
                    policy = new SessionSynchronizationTxPolicy(policy);
                }
            } else {
                policy = new StatefulContainerManagedTxPolicy(policy);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.openejb.core.stateful.SessionSynchronizationTxPolicy

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.