Examples of ClusteringInfo


Examples of org.jboss.as.ejb3.component.session.ClusteringInfo

        final ClassAnnotationInformation<Clustered, ClusteringInfo> clustering = clazz.getAnnotationInformation(Clustered.class);
        if (clustering == null || clustering.getClassLevelAnnotations().isEmpty()) {
            return;
        }
        // get the annotation information
        final ClusteringInfo clusteringInfo = clustering.getClassLevelAnnotations().get(0);
        // validate that the bean is eligible for clustering, before marking it as clustered
        this.validateAndMarkBeanAsClustered(ejbComponentDescription, clusteringInfo, deploymentUnit);
    }
View Full Code Here

Examples of org.jboss.as.ejb3.component.session.ClusteringInfo

                }
            }
        }
        if (beanClustered != null) {
            if (beanClustered) {
                this.validateAndMarkBeanAsClustered(ejbComponentDescription, new ClusteringInfo(), deploymentUnit);
            } else {
                // if the bean is marked as not-clustered, then we have to set the ClusteringInfo to null
                // in the EJB component description, so that we override any annotation information that's
                // already applied for the bean
                this.validateAndMarkBeanAsClustered(ejbComponentDescription, null, deploymentUnit);
            }
        } else if (allBeansClustered != null) {
            if (allBeansClustered) {
                this.validateAndMarkBeanAsClustered(ejbComponentDescription, new ClusteringInfo(), deploymentUnit);
            } else {
                // if the bean is marked as not-clustered, then we have to set the ClusteringInfo to null
                // in the EJB component description, so that we override any annotation information that's
                // already applied for the bean
                this.validateAndMarkBeanAsClustered(ejbComponentDescription, null, deploymentUnit);
View Full Code Here

Examples of org.jboss.as.ejb3.component.session.ClusteringInfo

        super(Clustered.class, null);
    }

    @Override
    protected ClusteringInfo fromAnnotation(AnnotationInstance annotationInstance) {
        return new ClusteringInfo();
    }
View Full Code Here

Examples of org.jboss.as.ejb3.component.session.ClusteringInfo

        if (!(ejbComponentDescription instanceof SessionBeanComponentDescription)) {
            throw EjbMessages.MESSAGES.clusteredAnnotationIsNotApplicableForBean(deploymentUnit, ejbComponentDescription.getComponentName(), ejbComponentDescription.getComponentClassName());
        }

        // set the annotation information on the session bean description
        final ClusteringInfo clusteringInfo = clustering.getClassLevelAnnotations().get(0);
        ((SessionBeanComponentDescription) ejbComponentDescription).setClustering(clusteringInfo);
    }
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.