Examples of TxRequired


Examples of org.apache.openejb.core.transaction.TxRequired

                    policy = new StatelessBeanManagedTxPolicy((TransactionContainer) container);
                } else if (componentType == BeanType.MESSAGE_DRIVEN) {
                    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
                policy = new TxRequired((TransactionContainer) container);
            }
            methodTransactionPolicies.put(method, policy);
        }
        if (policy == null) {
            policy = new TxSupports((TransactionContainer) container);
View Full Code Here

Examples of org.apache.openejb.core.transaction.TxRequired

            }
            byteValue = new Byte(TX_NOT_SUPPORTED);

        } else if (transAttribute.equalsIgnoreCase("Required")) {
            if (container instanceof TransactionContainer) {
                policy = new TxRequired((TransactionContainer) container);
            }
            byteValue = new Byte(TX_REQUIRED);

        } else if (transAttribute.equalsIgnoreCase("Never")) {
            if (container instanceof TransactionContainer) {
View Full Code Here

Examples of org.apache.openejb.core.transaction.TxRequired

        return super.intercept(ic);
    }

    @Override
    protected TransactionPolicy getPolicy() throws SystemException {
        return new TxRequired(getTransactionManager());
    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TxRequired

                    policy = new StatelessBeanManagedTxPolicy((TransactionContainer) container);
                } else if (componentType == BeanType.MESSAGE_DRIVEN) {
                    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
                policy = new TxRequired((TransactionContainer) container);
            }
            methodTransactionPolicies.put(method, policy);
        }
        if (policy == null) {
            policy = new TxSupports((TransactionContainer) container);
View Full Code Here

Examples of org.apache.openejb.core.transaction.TxRequired

            }
            byteValue = new Byte(TX_NOT_SUPPORTED);

        } else if (transAttribute.equalsIgnoreCase("Required")) {
            if (container instanceof TransactionContainer) {
                policy = new TxRequired((TransactionContainer) container);
            }
            byteValue = new Byte(TX_REQUIRED);

        } else if (transAttribute.equalsIgnoreCase("Never")) {
            if (container instanceof TransactionContainer) {
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.