[jboss-cvs] JBossAS SVN: r67506 - in trunk/ejb3: docs/tutorial/mdb and 3 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 27 14:43:58 EST 2007


Author: scott.stark at jboss.org
Date: 2007-11-27 14:43:58 -0500 (Tue, 27 Nov 2007)
New Revision: 67506

Modified:
   trunk/ejb3/docs/reference/reference/en/modules/session.xml
   trunk/ejb3/docs/tutorial/mdb/custom-ejb3-interceptors-aop.xml
   trunk/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml
   trunk/ejb3/src/resources/test-configs/removedislocal/deploy/ejb3-interceptors-aop.xml
   trunk/ejb3/src/resources/test/strictpool/META-INF/jboss.xml
Log:
Update the PoolClass annotation to Pool

Modified: trunk/ejb3/docs/reference/reference/en/modules/session.xml
===================================================================
--- trunk/ejb3/docs/reference/reference/en/modules/session.xml	2007-11-27 16:28:12 UTC (rev 67505)
+++ trunk/ejb3/docs/reference/reference/en/modules/session.xml	2007-11-27 19:43:58 UTC (rev 67506)
@@ -9,25 +9,25 @@
          to avoid Java synchronization (org.jboss.ejb3.ThreadLocalPool).  These EJB types can be configured to use an alternative pooling mechanism.  For example,
          JBoss has a strict pool size implementation that will only allow a fixed number of concurrent requests to run at one time.  If there are more requests running
          than the pool's strict size, those requests will block until an instance becomes available.  This is configured via the
-         @org.jboss.annotation.ejb.PoolClass annotation.
+         @org.jboss.annotation.ejb.Pool annotation.
          <programlisting>
             @Retention(RetentionPolicy.RUNTIME)
             @Target({ElementType.TYPE})
-            public @interface PoolClass
+            public @interface Pool
             {
-               Class value();
+               String value();
                int maxSize() default 30;
                long timeout()default Long.MAX_VALUE;
             }
          </programlisting>
          </para>
       <para>
-         The value() parameter defines the pool implementation class you want to plug in.  maxSize() defines the size of the pool while timeout() is a time in
+         The value() parameter defines the pool factory name you want to plug in.  maxSize() defines the size of the pool while timeout() is a time in
          milliseconds you want to block when waiting for an instance to be ready.  This annotation can be applied to a stateless or message driven bean class.
          Here's an example of using it.
          <programlisting>
             @Stateless
-            @PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=5, timeout=10000)
+            @Pool (value="StrictMaxPool", maxSize=5, timeout=10000)
             @Remote(StrictlyPooledSession.class)
             public class StrictlyPooledSessionBean implements StrictlyPooledSession
             {
@@ -46,13 +46,13 @@
          <programlisting><![CDATA[
 <aop>
    <domain name="Strictly Pooled Stateless Bean" extends="Stateless Bean" inheritBindings="true">
-      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
-          @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=5, timeout=10000)
+      <annotation expr="!class(@org.jboss.annotation.ejb.Pool)">
+          @org.jboss.annotation.ejb.Pool (value="StrictMaxPool", maxSize=5, timeout=10000)
       </annotation>
    </domain>
    <domain name="Strictly Pooled Message Driven Bean" extends="Message Driven Bean" inheritBindings="true">
-      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
-          @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=5, timeout=10000)
+      <annotation expr="!class(@org.jboss.annotation.ejb.Pool)">
+          @org.jboss.annotation.ejb.Pool (value="StrictMaxPool", maxSize=5, timeout=10000)
       </annotation>
    </domain>
 </aop>

Modified: trunk/ejb3/docs/tutorial/mdb/custom-ejb3-interceptors-aop.xml
===================================================================
--- trunk/ejb3/docs/tutorial/mdb/custom-ejb3-interceptors-aop.xml	2007-11-27 16:28:12 UTC (rev 67505)
+++ trunk/ejb3/docs/tutorial/mdb/custom-ejb3-interceptors-aop.xml	2007-11-27 19:43:58 UTC (rev 67506)
@@ -22,8 +22,8 @@
          <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
          <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
-      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
-         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.StrictMaxPool.class, maxSize=15, timeout=10000)
+      <annotation expr="!class(@org.jboss.annotation.ejb.Pool)">
+         @org.jboss.annotation.ejb.Pool (value="StrictMaxPool", maxSize=15, timeout=10000)
       </annotation>
       <annotation expr="!class(@org.jboss.annotation.ejb.DefaultActivationSpecs)">
          @org.jboss.annotation.ejb.DefaultActivationSpecs (value={@javax.ejb.ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), @javax.ejb.ActivationConfigProperty(propertyName="destination", propertyValue="queue/tutorial/defaultedexample")})

Modified: trunk/ejb3/src/resources/test/strictpool/META-INF/jboss.xml
===================================================================
--- trunk/ejb3/src/resources/test/strictpool/META-INF/jboss.xml	2007-11-27 16:28:12 UTC (rev 67505)
+++ trunk/ejb3/src/resources/test/strictpool/META-INF/jboss.xml	2007-11-27 19:43:58 UTC (rev 67506)
@@ -33,11 +33,11 @@
          <message-driven>
             <ejb-name>OverrideStrictlyPooledMDB</ejb-name>
             <!--annotation>
-               <annotation-class>org.jboss.annotation.ejb.PoolClass</annotation-class>
-               <annotation-implementation-class>org.jboss.annotation.ejb.PoolClassImpl</annotation-implementation-class>
+               <annotation-class>org.jboss.annotation.ejb.Pool</annotation-class>
+               <annotation-implementation-class>org.jboss.annotation.ejb.PoolImpl</annotation-implementation-class>
                <property>
                   <property-name>value</property-name>
-                  <property-value>org.jboss.ejb3.StrictMaxPool</property-value>
+                  <property-value>StrictMaxPool</property-value>
                </property>
                <property>
                   <property-name>maxSize</property-name>

Modified: trunk/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml
===================================================================
--- trunk/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml	2007-11-27 16:28:12 UTC (rev 67505)
+++ trunk/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml	2007-11-27 19:43:58 UTC (rev 67506)
@@ -103,8 +103,8 @@
       <bind pointcut="execution(* $typedef{ejb3intercepted}->*(..))">
          <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
-      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
-         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      <annotation expr="!class(@org.jboss.annotation.ejb.Pool)">
+         @org.jboss.annotation.ejb.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
       </annotation>
    </domain>
 

Modified: trunk/ejb3/src/resources/test-configs/removedislocal/deploy/ejb3-interceptors-aop.xml
===================================================================
--- trunk/ejb3/src/resources/test-configs/removedislocal/deploy/ejb3-interceptors-aop.xml	2007-11-27 16:28:12 UTC (rev 67505)
+++ trunk/ejb3/src/resources/test-configs/removedislocal/deploy/ejb3-interceptors-aop.xml	2007-11-27 19:43:58 UTC (rev 67506)
@@ -107,8 +107,8 @@
          <interceptor-ref name="org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor"/>
          <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
       </bind>
-      <annotation expr="!class(@org.jboss.annotation.ejb.PoolClass)">
-         @org.jboss.annotation.ejb.PoolClass (value=org.jboss.ejb3.ThreadlocalPool.class, maxSize=30, timeout=10000)
+      <annotation expr="!class(@org.jboss.annotation.ejb.Pool)">
+         @org.jboss.annotation.ejb.Pool (value="ThreadlocalPool", maxSize=30, timeout=10000)
       </annotation>
    </domain>
 




More information about the jboss-cvs-commits mailing list