[Jboss-cvs] JBossAS SVN: r56636 - in branches/Branch_4_0/ejb3/src/resources: test/clusteredsession/META-INF test/jca/inflow test/regression test/regression/ejbthree485 test/regression/ejbthree485/META-INF test/regression/ejbthree625 test/regression/ejbthree625/META-INF test/servlet test/strictpool test/strictpool/META-INF test-configs/ejb3-jacc/deploy

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 7 23:37:38 EDT 2006


Author: bill.burke at jboss.com
Date: 2006-09-07 23:37:35 -0400 (Thu, 07 Sep 2006)
New Revision: 56636

Added:
   branches/Branch_4_0/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml
   branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/ejb-jar.xml
   branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/jboss.xml
   branches/Branch_4_0/ejb3/src/resources/test/jca/inflow/jmsmdbtest-service.xml
   branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree485/
   branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree485/META-INF/
   branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree485/META-INF/application.xml
   branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree625/
   branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree625/META-INF/
   branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree625/META-INF/ejb-jar.xml
   branches/Branch_4_0/ejb3/src/resources/test/servlet/roles.properties
   branches/Branch_4_0/ejb3/src/resources/test/servlet/users.properties
   branches/Branch_4_0/ejb3/src/resources/test/strictpool/META-INF/
   branches/Branch_4_0/ejb3/src/resources/test/strictpool/META-INF/jboss.xml
Log:


Added: branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/ejb-jar.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/ejb-jar.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/ejb-jar.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+        version="3.0">
+   <enterprise-beans>
+      <session>
+         <ejb-name>NonClusteredStateful</ejb-name>
+         <remote>org.jboss.ejb3.test.clusteredsession.OverrideStatefulRemote</remote>
+         <ejb-class>org.jboss.ejb3.test.clusteredsession.OverrideStatefulBean</ejb-class>
+         <session-type>Stateful</session-type>
+         <transaction-type>Container</transaction-type>
+      </session>
+   </enterprise-beans>
+</ejb-jar>

Added: branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/jboss.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/jboss.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/clusteredsession/META-INF/jboss.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,29 @@
+<?xml version="1.0"?>
+<jboss
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+        version="3.0">
+      <enterprise-beans>
+         <session>
+            <ejb-name>OverrideStateful</ejb-name>
+            <jndi-name>OverrideStatefulRemote</jndi-name>
+            <clustered>true</clustered>
+            <cluster-config>
+               <partition-name>DefaultPartition</partition-name>
+               <load-balance-policy>org.jboss.ha.framework.interfaces.RandomRobin</load-balance-policy>
+            </cluster-config>
+         </session>
+         <session>
+            <ejb-name>NonClusteredStateful</ejb-name>
+            <jndi-name>NonClusteredStatefulRemote</jndi-name>
+            <clustered>false</clustered>
+            <cache-config>
+               <cache-class>org.jboss.ejb3.cache.simple.SimpleStatefulCache</cache-class>
+               <cache-max-size>1000</cache-max-size>
+               <idle-timeout-seconds>100</idle-timeout-seconds>
+            </cache-config>
+         </session>
+      </enterprise-beans>
+   </jboss>
\ No newline at end of file

Added: branches/Branch_4_0/ejb3/src/resources/test/jca/inflow/jmsmdbtest-service.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/jca/inflow/jmsmdbtest-service.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/jca/inflow/jmsmdbtest-service.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+   <mbean code="org.jboss.mq.server.jmx.Queue"
+      name="jboss.mq.destination:service=Queue,name=queuetest">
+      <attribute name="JNDIName">queue/mdbtest</attribute>
+      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
+   </mbean>
+</server>

Added: branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree485/META-INF/application.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree485/META-INF/application.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree485/META-INF/application.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE application PUBLIC
+   "-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
+   "http://java.sun.com/dtd/application_1_3.dtd">
+
+<application>
+   <display-name>EJB3 Ear test</display-name>
+
+   <module>
+      <ejb>ejbthree485.jar</ejb>
+   </module>
+</application>

Added: branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree625/META-INF/ejb-jar.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree625/META-INF/ejb-jar.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/regression/ejbthree625/META-INF/ejb-jar.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ejb-jar
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
+        version="3.0">
+   <assembly-descriptor>
+      <interceptor-binding>
+         <ejb-name>*</ejb-name>
+         <interceptor-class>org.jboss.ejb3.test.regression.ejbthree625.StupidInterceptor</interceptor-class>
+      </interceptor-binding>
+   </assembly-descriptor>
+</ejb-jar>

Added: branches/Branch_4_0/ejb3/src/resources/test/servlet/roles.properties
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/servlet/roles.properties	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/servlet/roles.properties	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,2 @@
+somebody=allowed
+

Added: branches/Branch_4_0/ejb3/src/resources/test/servlet/users.properties
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/servlet/users.properties	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/servlet/users.properties	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1 @@
+somebody=password

Added: branches/Branch_4_0/ejb3/src/resources/test/strictpool/META-INF/jboss.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test/strictpool/META-INF/jboss.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test/strictpool/META-INF/jboss.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<jboss
+        xmlns="http://java.sun.com/xml/ns/javaee"
+        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+        xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
+                            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
+        version="3.0">
+      <enterprise-beans>
+         <session>
+            <ejb-name>OverrideStrictlyPooledSessionBean</ejb-name>
+            <annotation>
+               <annotation-class>org.jboss.annotation.ejb.PoolClass</annotation-class>
+               <annotation-implementation-class>org.jboss.annotation.ejb.PoolClassImpl</annotation-implementation-class>
+               <property>
+                  <property-name>value</property-name>
+                  <property-value>org.jboss.ejb3.StrictMaxPool</property-value>
+               </property>
+               <property>
+                  <property-name>maxSize</property-name>
+                  <property-value>5</property-value>
+               </property>
+               <property>
+                  <property-name>timeout</property-name>
+                  <property-value>10000</property-value>
+               </property>
+            </annotation>
+            <!--pool-config>
+               <pool-class>org.jboss.ejb3.StrictMaxPool</pool-class>
+               <pool-max-size>5</pool-max-size>
+               <pool-timeout>10000</pool-timeout>
+            </pool-config-->
+         </session>
+         <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>
+               <property>
+                  <property-name>value</property-name>
+                  <property-value>org.jboss.ejb3.StrictMaxPool</property-value>
+               </property>
+               <property>
+                  <property-name>maxSize</property-name>
+                  <property-value>5</property-value>
+               </property>
+               <property>
+                  <property-name>timeout</property-name>
+                  <property-value>10000</property-value>
+               </property>
+            </annotation-->
+            <pool-config>
+               <pool-class>org.jboss.ejb3.StrictMaxPool</pool-class>
+               <pool-max-size>5</pool-max-size>
+               <pool-timeout>10000</pool-timeout>
+            </pool-config>
+         </message-driven>
+      </enterprise-beans>
+   </jboss>
\ No newline at end of file

Added: branches/Branch_4_0/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml
===================================================================
--- branches/Branch_4_0/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml	2006-09-08 03:28:03 UTC (rev 56635)
+++ branches/Branch_4_0/ejb3/src/resources/test-configs/ejb3-jacc/deploy/ejb3-interceptors-aop.xml	2006-09-08 03:37:35 UTC (rev 56636)
@@ -0,0 +1,206 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE aop PUBLIC
+"-//JBoss//DTD JBOSS AOP 1.0//EN"
+"http://www.jboss.org/aop/dtd/jboss-aop_1_0.dtd">
+
+<aop>
+   <interceptor class="org.jboss.aspects.remoting.InvokeRemoteInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.security.SecurityClientInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.tx.ClientTxPropagationInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.remoting.IsLocalInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.aspects.remoting.ClusterChooserInterceptor" scope="PER_VM"/>
+
+   <interceptor class="org.jboss.aspects.tx.TxPropagationInterceptor" scope="PER_VM"/>
+
+   <stack name="ServiceClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="AsynchronousStatelessSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="AsynchronousStatefulSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="StatelessSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="StatefulSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="ClusteredStatelessSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.ClusterChooserInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <stack name="ClusteredStatefulSessionClientInterceptors">
+      <interceptor-ref name="org.jboss.aspects.remoting.IsLocalInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.security.SecurityClientInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.tx.ClientTxPropagationInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.ClusterChooserInterceptor"/>
+      <interceptor-ref name="org.jboss.aspects.remoting.InvokeRemoteInterceptor"/>
+   </stack>
+
+   <interceptor class="org.jboss.ejb3.asynchronous.AsynchronousInterceptor" scope="PER_CLASS"/>
+   <interceptor factory="org.jboss.ejb3.security.JaccAuthorizationInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor factory="org.jboss.ejb3.security.AuthenticationInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor class="org.jboss.ejb3.security.RunAsSecurityInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.stateless.StatelessInstanceInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.stateful.StatefulInstanceInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.service.ServiceSingletonInterceptor" scope="PER_VM"/>
+   <interceptor class="org.jboss.ejb3.cache.StatefulReplicationInterceptor" scope="PER_VM"/>
+   <interceptor factory="org.jboss.ejb3.stateful.StatefulRemoveFactory" scope="PER_CLASS_JOINPOINT"/>
+   <interceptor factory="org.jboss.ejb3.tx.TxInterceptorFactory" scope="PER_CLASS_JOINPOINT"/>
+   <interceptor factory="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory" scope="PER_CLASS_JOINPOINT"/>
+   <interceptor factory="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory" scope="PER_CLASS"/>
+   <interceptor class="org.jboss.ejb3.AllowedOperationsInterceptor" scope="PER_VM"/>
+
+   <typedef name="ejb3intercepted" expr="class(@javax.ejb.Interceptors) OR class(@javax.ejb.Interceptor) OR has(* *->@javax.ejb.AroundInvoke(..))"/>
+
+   <domain name="Stateless Bean">
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* @org.jboss.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.JaccAuthorizationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptor"/>
+      </bind>
+      <bind pointcut="execution(* @org.jboss.annotation.ejb.Clustered->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+      </bind>
+      <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>
+   </domain>
+
+   <domain name="Stateful Bean">
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* @org.jboss.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.JaccAuthorizationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptor"/>
+      </bind>
+      <bind pointcut="execution(* @org.jboss.annotation.ejb.Clustered->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.remoting.ReplicantsManagerInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateful.StatefulRemoveFactory"/>
+      </bind>
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.stateful.StatefulInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+      </bind>
+      <bind pointcut="execution(* @javax.persistence.PersistenceContext->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor"/>
+      </bind>
+
+      <bind pointcut="execution(* @org.jboss.annotation.ejb.Clustered->*(..)) AND !execution(* *->@javax.ejb.Remove(..))">
+         <interceptor-ref name="org.jboss.ejb3.cache.StatefulReplicationInterceptor"/>
+      </bind>
+      <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>
+
+      <!-- NON Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.simple.SimpleStatefulCache.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.PersistenceManager) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.simple.PersistenceManager (org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.simple.CacheConfig) AND !class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.simple.CacheConfig (maxSize=100000, idleTimeoutSeconds=300)
+      </annotation>
+
+      <!-- Clustered cache configuration -->
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.Cache) AND class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.Cache (org.jboss.ejb3.cache.tree.StatefulTreeCache.class)
+      </annotation>
+      <annotation expr="!class(@org.jboss.annotation.ejb.cache.tree.CacheConfig) AND class(@org.jboss.annotation.ejb.Clustered)">
+         @org.jboss.annotation.ejb.cache.tree.CacheConfig (name="jboss.cache:service=EJB3SFSBClusteredCache", maxSize=100000, idleTimeoutSeconds=300)
+      </annotation>
+   </domain>
+
+   <domain name="Message Driven Bean">
+      <bind pointcut="execution(* @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptor"/>
+      </bind>
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.stateless.StatelessInstanceInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+      </bind>
+      <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>
+   </domain>
+
+   <domain name="Service Bean">
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.asynchronous.AsynchronousInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.security.AuthenticationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* @org.jboss.annotation.security.SecurityDomain->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.JaccAuthorizationInterceptorFactory"/>
+      </bind>
+      <bind pointcut="execution(* @javax.annotation.security.RunAs->*(..))">
+         <interceptor-ref name="org.jboss.ejb3.security.RunAsSecurityInterceptor"/>
+      </bind>
+      <bind pointcut="execution(* *->*(..))">
+         <interceptor-ref name="org.jboss.aspects.tx.TxPropagationInterceptor"/>
+         <interceptor-ref name="org.jboss.ejb3.tx.TxInterceptorFactory"/>
+         <interceptor-ref name="org.jboss.ejb3.AllowedOperationsInterceptor"/>
+      </bind>
+      <bind pointcut="execution(* $typedef{ejb3intercepted}->*(..)) AND !execution(* *->create()) AND !execution(* *->start())">
+         <interceptor-ref name="org.jboss.ejb3.interceptor.EJB3InterceptorsFactory"/>
+      </bind>
+   </domain>
+
+</aop>




More information about the jboss-cvs-commits mailing list