org.jboss.ejb3.annotation
Annotation Type Clustered


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Clustered

Annotation for specifying that a bean should be clustered

Version:
$Revision:67157 $
Author:
Bill Burke

Optional Element Summary
 String homeLoadBalancePolicy
          The LoadBalancePolicy implementation to use for balancing remote home invocations.
 String loadBalancePolicy
          The LoadBalancePolicy implementation to use for balancing remote bean invocations.
 String partition
           
 

loadBalancePolicy

public abstract String loadBalancePolicy
The LoadBalancePolicy implementation to use for balancing remote bean invocations.

Specifying the LoadBalancePolicy interface itself (which is the default value) means the EJB container should pick a sensible default based on the type of the bean.

Returns:
the class of the LoadBalancePolicy implementation, or, if it is up to the container to choose an appropriate policy, the class of the LoadBalancePolicy interface itself.
Default:
"LoadBalancePolicy"

homeLoadBalancePolicy

public abstract String homeLoadBalancePolicy
The LoadBalancePolicy implementation to use for balancing remote home invocations.

Specifying the LoadBalancePolicy interface itself (which is the default value) means the EJB container should pick a sensible default based on the type of the bean.

Returns:
the class of the LoadBalancePolicy implementation, or, if it is up to the container to choose an appropriate policy, the class of the LoadBalancePolicy interface itself.
Default:
"LoadBalancePolicy"

partition

public abstract String partition
Default:
"${jboss.partition.name:DefaultPartition}"


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.