[jboss-cvs] JBossAS SVN: r67309 - projects/cluster/trunk/ha-client/src/main/java/org/jboss/annotation/ejb.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 20 16:41:14 EST 2007


Author: bstansberry at jboss.com
Date: 2007-11-20 16:41:14 -0500 (Tue, 20 Nov 2007)
New Revision: 67309

Modified:
   projects/cluster/trunk/ha-client/src/main/java/org/jboss/annotation/ejb/Clustered.java
Log:
[EJBTHREE-1110] Support configuring home-load-balancy-policy

Modified: projects/cluster/trunk/ha-client/src/main/java/org/jboss/annotation/ejb/Clustered.java
===================================================================
--- projects/cluster/trunk/ha-client/src/main/java/org/jboss/annotation/ejb/Clustered.java	2007-11-20 21:18:35 UTC (rev 67308)
+++ projects/cluster/trunk/ha-client/src/main/java/org/jboss/annotation/ejb/Clustered.java	2007-11-20 21:41:14 UTC (rev 67309)
@@ -32,13 +32,43 @@
  * Annotation for specifying that a bean should be clustered
  *
  * @author <a href="mailto:bill at jboss.org">Bill Burke</a>
- * @version $Revision$
+ * @version $Revision:67157 $
  */
 @Target(ElementType.TYPE)
 @Retention(RetentionPolicy.RUNTIME)
 public @interface Clustered
 {
+   /** 
+    * The {@link LoadBalancePolicy} implementation to use for balancing
+    * remote bean invocations.
+    * <p>
+    * Specifying the <code>LoadBalancePolicy</code> interface itself (which
+    * is the default value) means the EJB container should pick a sensible
+    * default based on the type of the bean.
+    * </p>
+    * 
+    * @return the class of the <code>LoadBalancePolicy</code> implementation, 
+    *         or, if it is up to the container to choose an appropriate
+    *         policy, the class of the <code>LoadBalancePolicy</code> interface 
+    *         itself.
+    */
    Class<? extends LoadBalancePolicy> loadBalancePolicy() default LoadBalancePolicy.class;
+   
+   /** 
+    * The {@link LoadBalancePolicy} implementation to use for balancing
+    * remote home invocations.
+    * <p>
+    * Specifying the <code>LoadBalancePolicy</code> interface itself (which
+    * is the default value) means the EJB container should pick a sensible
+    * default based on the type of the bean.
+    * </p>
+    * 
+    * @return the class of the <code>LoadBalancePolicy</code> implementation, 
+    *         or, if it is up to the container to choose an appropriate
+    *         policy, the class of the <code>LoadBalancePolicy</code> interface 
+    *         itself.
+    */
+   Class<? extends LoadBalancePolicy> homeLoadBalancePolicy() default LoadBalancePolicy.class;
 
    String partition() default "${jboss.partition.name:DefaultPartition}";
 }




More information about the jboss-cvs-commits mailing list