Examples of ConcurrencyManagementType


Examples of com.sun.enterprise.deployment.EjbSessionDescriptor.ConcurrencyManagementType

    protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo,
            EjbContext[] ejbContexts) throws AnnotationProcessorException {

        ConcurrencyManagement cmAn = (ConcurrencyManagement) ainfo.getAnnotation();

        ConcurrencyManagementType cmType = cmAn.value();

        for (EjbContext ejbContext : ejbContexts) {
            EjbDescriptor ejbDesc = ejbContext.getDescriptor();
            if (ejbDesc instanceof EjbSessionDescriptor) {
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                        if (sessionBean.getSessionType() == SessionType.SINGLETON) {

                            if (sessionBean.getConcurrencyType() == null) {
                                ConcurrencyManagement tx = getInheritableAnnotation(clazz, ConcurrencyManagement.class);
                                ConcurrencyManagementType concurrencyType = ConcurrencyManagementType.CONTAINER;
                                if (tx != null) {
                                    concurrencyType = tx.value();
                                }
                                switch (concurrencyType) {
                                    case BEAN:
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

      if (metaData.isSession() == false || (metaData instanceof JBossSessionBean31MetaData) == false)
      {
         return null;
      }
      JBossSessionBean31MetaData sessionBean = (JBossSessionBean31MetaData) metaData;
      ConcurrencyManagementType concurrencyManagementType = sessionBean.getConcurrencyManagementType();
      if (concurrencyManagementType == null)
      {
         return null;
      }
      ConcurrencyManagement conManagement = new ConcurrencyManagementImpl(concurrencyManagementType);
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

            return;
        }
        SessionBeanMetaData data = componentConfiguration.getDescriptorData();
        if (data instanceof SessionBean31MetaData) {
            SessionBean31MetaData descriptor = (SessionBean31MetaData) data;
            final ConcurrencyManagementType type = descriptor.getConcurrencyManagementType();
            if (type != null) {
                componentConfiguration.setConcurrencyManagementType(type);
            }
        }
    }
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                            /*
                             * @ConcurrencyManagement
                             */
                            if (sessionBean.getConcurrencyType() == null) {
                                ConcurrencyManagement tx = getInheritableAnnotation(clazz, ConcurrencyManagement.class);
                                ConcurrencyManagementType concurrencyType = ConcurrencyManagementType.CONTAINER;
                                if (tx != null) {
                                    concurrencyType = tx.value();
                                }
                                switch (concurrencyType) {
                                    case BEAN:
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                            /*
                             * @ConcurrencyManagement
                             */
                            if (sessionBean.getConcurrencyType() == null) {
                                ConcurrencyManagement tx = getInheritableAnnotation(clazz, ConcurrencyManagement.class);
                                ConcurrencyManagementType concurrencyType = ConcurrencyManagementType.CONTAINER;
                                if (tx != null) {
                                    concurrencyType = tx.value();
                                }
                                switch (concurrencyType) {
                                    case BEAN:
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                mergedBean.setTransactionManagementType(original.getTransactionManagementType());
            }
        }

        // concurrency management type
        ConcurrencyManagementType overrideConcurrencyMgmtType = override.getConcurrencyManagementType();
        if (overrideConcurrencyMgmtType != null) {
            if (overrideConcurrencyMgmtType == ConcurrencyManagementType.BEAN) {
                mergedBean.beanManagedConcurrency();
            } else {
                mergedBean.containerManagedConcurrency();
            }
        } else {
            ConcurrencyManagementType originalConcurrencyManagemenType = original.getConcurrencyManagementType();
            if (originalConcurrencyManagemenType != null) {
                if (originalConcurrencyManagemenType == ConcurrencyManagementType.BEAN) {
                    mergedBean.beanManagedConcurrency();
                } else {
                    mergedBean.containerManagedConcurrency();
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                singletonComponentDescription.setLockType(methodLockType, method);
            }
        }

        // concurrency management type
        ConcurrencyManagementType concurrencyManagementType = singletonBeanMetaData.getConcurrencyManagementType();
        if (concurrencyManagementType == ConcurrencyManagementType.BEAN) {
            singletonComponentDescription.beanManagedConcurrency();
        } else {
            singletonComponentDescription.containerManagedConcurrency();
        }
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                mergedBean.setTransactionManagementType(original.getTransactionManagementType());
            }
        }

        // concurrency management type
        ConcurrencyManagementType overrideConcurrencyMgmtType = override.getConcurrencyManagementType();
        if (overrideConcurrencyMgmtType != null) {
            if (overrideConcurrencyMgmtType == ConcurrencyManagementType.BEAN) {
                mergedBean.beanManagedConcurrency();
            } else {
                mergedBean.containerManagedConcurrency();
            }
        } else {
            ConcurrencyManagementType originalConcurrencyManagemenType = original.getConcurrencyManagementType();
            if (originalConcurrencyManagemenType != null) {
                if (originalConcurrencyManagemenType == ConcurrencyManagementType.BEAN) {
                    mergedBean.beanManagedConcurrency();
                } else {
                    mergedBean.containerManagedConcurrency();
View Full Code Here

Examples of javax.ejb.ConcurrencyManagementType

                            /*
                             * @ConcurrencyManagement
                             */
                            if (sessionBean.getConcurrencyType() == null) {
                                ConcurrencyManagement tx = getInheritableAnnotation(clazz, ConcurrencyManagement.class);
                                ConcurrencyManagementType concurrencyType = ConcurrencyManagementType.CONTAINER;
                                if (tx != null) {
                                    concurrencyType = tx.value();
                                }
                                switch (concurrencyType) {
                                    case BEAN:
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.