[jboss-cvs] JBossAS SVN: r89479 - in projects/ejb3/trunk: as-int and 27 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 27 18:06:12 EDT 2009


Author: ALRubinger
Date: 2009-05-27 18:06:11 -0400 (Wed, 27 May 2009)
New Revision: 89479

Added:
   projects/ejb3/trunk/metrics-deployer/
   projects/ejb3/trunk/metrics-deployer/.classpath
   projects/ejb3/trunk/metrics-deployer/.project
   projects/ejb3/trunk/metrics-deployer/pom.xml
   projects/ejb3/trunk/metrics-deployer/src/
   projects/ejb3/trunk/metrics-deployer/src/main/
   projects/ejb3/trunk/metrics-deployer/src/main/java/
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicSessionMetrics.java
   projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java
   projects/ejb3/trunk/metrics-deployer/src/main/resources/
   projects/ejb3/trunk/metrics-deployer/src/main/resources/META-INF/
   projects/ejb3/trunk/metrics-deployer/src/main/resources/META-INF/jboss-beans.xml
   projects/ejb3/trunk/metrics-deployer/src/test/
   projects/ejb3/trunk/metrics-deployer/src/test/java/
   projects/ejb3/trunk/metrics-deployer/src/test/resources/
   projects/ejb3/trunk/metrics-spi/
   projects/ejb3/trunk/metrics-spi/.classpath
   projects/ejb3/trunk/metrics-spi/.project
   projects/ejb3/trunk/metrics-spi/pom.xml
   projects/ejb3/trunk/metrics-spi/src/
   projects/ejb3/trunk/metrics-spi/src/main/
   projects/ejb3/trunk/metrics-spi/src/main/java/
   projects/ejb3/trunk/metrics-spi/src/main/java/org/
   projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/
   projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/
   projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/metrics/
   projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/metrics/spi/
   projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/metrics/spi/SessionMetrics.java
   projects/ejb3/trunk/metrics-spi/src/main/resources/
   projects/ejb3/trunk/metrics-spi/src/test/
   projects/ejb3/trunk/metrics-spi/src/test/java/
   projects/ejb3/trunk/metrics-spi/src/test/resources/
   projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-deployer.xml
   projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-spi.xml
Modified:
   projects/ejb3/trunk/as-int/pom.xml
   projects/ejb3/trunk/core/.classpath
   projects/ejb3/trunk/core/pom.xml
   projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/Ejb3Deployment.java
   projects/ejb3/trunk/ejb3/pom.xml
   projects/ejb3/trunk/plugin/pom.xml
   projects/ejb3/trunk/plugin/src/main/resources/installer.xml
   projects/ejb3/trunk/plugin/src/main/resources/package-list.txt
   projects/ejb3/trunk/pom.xml
Log:
[EJBTHREE-1839] Some prototype wiring up of installing a @ManagementObject for Session Metrics

Modified: projects/ejb3/trunk/as-int/pom.xml
===================================================================
--- projects/ejb3/trunk/as-int/pom.xml	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/as-int/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -29,7 +29,7 @@
     into the AS
     
      -->
-    <version.org.jboss.ejb3_jboss.ejb3>1.1.6</version.org.jboss.ejb3_jboss.ejb3>
+    <version.org.jboss.ejb3_jboss.ejb3>1.1.7-SNAPSHOT</version.org.jboss.ejb3_jboss.ejb3>
     <version.org.jboss.ejb3_mc.int>1.0.1</version.org.jboss.ejb3_mc.int>
   
   </properties>

Modified: projects/ejb3/trunk/core/.classpath
===================================================================
--- projects/ejb3/trunk/core/.classpath	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/core/.classpath	2009-05-27 22:06:11 UTC (rev 89479)
@@ -1,9 +1,177 @@
 <classpath>
-  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="src" path="src/test/java" output="eclipse-target/tests-classes" including="**/*.java"/>
+  <classpathentry kind="src" path="src/test/resources" output="eclipse-target/tests-classes" excluding="**/*.java"/>
+  <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
   <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
-  <classpathentry kind="src" path="src/test/java" output="eclipse-target/tests-classes"/>
-  <classpathentry kind="src" path="src/test/resources" output="eclipse-target/tests-classes" excluding="**/*.java"/>
   <classpathentry kind="output" path="eclipse-target/classes"/>
+  <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.0.2/activation-1.0.2.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javax/security/jaas/1.0.01/jaas-1.0.01.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javax/security/jacc/1.0/jacc-1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javax/mail/mail/1.4/mail-1.4.jar" sourcepath="M2_REPO/javax/mail/mail/1.4/mail-1.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javax/xml/soap/saaj-api/1.3/saaj-api-1.3.jar" sourcepath="M2_REPO/javax/xml/soap/saaj-api/1.3/saaj-api-1.3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-junit/1.7.0/ant-junit-1.7.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6.jar" sourcepath="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/asm/asm/1.5.3/asm-1.5.3.jar"/>
+  <classpathentry kind="var" path="M2_REPO/asm/asm-attrs/1.5.3/asm-attrs-1.5.3.jar"/>
+  <classpathentry kind="var" path="M2_REPO/bcel/bcel/5.1/bcel-5.1.jar" sourcepath="M2_REPO/bcel/bcel/5.1/bcel-5.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/bsh/bsh/1.3.0/bsh-1.3.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/cglib/cglib/2.1_3/cglib-2.1_3.jar" sourcepath="M2_REPO/cglib/cglib/2.1_3/cglib-2.1_3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/2.1.1/commons-collections-2.1.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar" sourcepath="M2_REPO/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/oswego-concurrent/concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1.jar" sourcepath="M2_REPO/oswego-concurrent/concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/wutka-dtdparser/dtdparser121/1.2.1/dtdparser121-1.2.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3.jar" sourcepath="M2_REPO/net/sf/ehcache/ehcache/1.2.3/ehcache-1.2.3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.1.GA/ejb3-persistence-1.0.1.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga.jar" sourcepath="M2_REPO/org/hibernate/hibernate/3.2.6.ga/hibernate-3.2.6.ga-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-annotations/3.3.1.GA/hibernate-annotations-3.3.1.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.0.0.ga/hibernate-commons-annotations-3.0.0.ga.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.3.2.GA/hibernate-entitymanager-3.3.2.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/urbanophile/java-getopt/1.0.9/java-getopt-1.0.9.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.7.1.GA/javassist-3.7.1.GA.jar" sourcepath="M2_REPO/javassist/javassist/3.7.1.GA/javassist-3.7.1.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4.jar" sourcepath="M2_REPO/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop/2.0.0.GA/jboss-aop-2.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop/2.0.0.GA/jboss-aop-2.0.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-aspects/2.0.1.GA/jboss-aop-aspects-2.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop-aspects/2.0.1.GA/jboss-aop-aspects-2.0.1.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-deployer-jdk50/2.0.0.CR10/jboss-aop-deployer-jdk50-2.0.0.CR10.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-jdk50/2.0.0.CR17/jboss-aop-jdk50-2.0.0.CR17.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.2.0.M1/jboss-aop-mc-int-2.2.0.M1.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.2.0.M1/jboss-aop-mc-int-2.2.0.M1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-bootstrap/5.0.0.CR2/jboss-as-bootstrap-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-bootstrap/5.0.0.CR2/jboss-as-bootstrap-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-deployment/5.0.0.CR2/jboss-as-deployment-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-deployment/5.0.0.CR2/jboss-as-deployment-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-j2se/5.0.0.CR2/jboss-as-j2se-5.0.0.CR2-tests.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-jmx/5.0.0.CR2/jboss-as-jmx-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-jmx/5.0.0.CR2/jboss-as-jmx-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-main/5.0.0.CR2/jboss-as-main-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-main/5.0.0.CR2/jboss-as-main-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-mbeans/5.0.0.CR2/jboss-as-mbeans-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-mbeans/5.0.0.CR2/jboss-as-mbeans-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-server/5.0.0.CR2/jboss-as-server-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-server/5.0.0.CR2/jboss-as-server-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-system/5.0.0.CR2/jboss-as-system-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-system/5.0.0.CR2/jboss-as-system-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-as-system-jmx/5.0.0.CR2/jboss-as-system-jmx-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-as-system-jmx/5.0.0.CR2/jboss-as-system-jmx-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-aspects-test/1.0.0.Beta1/jboss-aspects-test-1.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-aspects-test/1.0.0.Beta1/jboss-aspects-test-1.0.0.Beta1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloader/2.0.3.GA/jboss-classloader-2.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloader/2.0.3.GA/jboss-classloader-2.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading/2.0.3.GA/jboss-classloading-2.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading/2.0.3.GA/jboss-classloading-2.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.0.0.CR2/jboss-classloading-spi-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.0.0.CR2/jboss-classloading-spi-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.3.GA/jboss-classloading-vfs-2.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.3.GA/jboss-classloading-vfs-2.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-common-core/2.2.5.GA/jboss-common-core-2.2.5.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-common-core/2.2.5.GA/jboss-common-core-2.2.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-current-invocation-aspects/1.0.0.CR1/jboss-current-invocation-aspects-1.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-current-invocation-aspects/1.0.0.CR1/jboss-current-invocation-aspects-1.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.0.CR5/jboss-dependency-2.0.0.CR5.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.0.CR5/jboss-dependency-2.0.0.CR5-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.5.GA/jboss-deployers-client-2.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.5.GA/jboss-deployers-client-2.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.0.CR1/jboss-deployers-client-spi-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.0.CR1/jboss-deployers-client-spi-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-deployers-client-spi/2.0.0.Beta6/jboss-deployers-client-spi-2.0.0.Beta6-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.5.GA/jboss-deployers-core-2.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.5.GA/jboss-deployers-core-2.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.0.CR5/jboss-deployers-core-spi-2.0.0.CR5.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.0.CR5/jboss-deployers-core-spi-2.0.0.CR5-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.0.CR1/jboss-deployers-impl-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.0.CR1/jboss-deployers-impl-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.0.CR5/jboss-deployers-spi-2.0.0.CR5.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.0.CR5/jboss-deployers-spi-2.0.0.CR5-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.0.CR1/jboss-deployers-structure-spi-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.0.CR1/jboss-deployers-structure-spi-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.0.CR1/jboss-deployers-vfs-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.0.CR1/jboss-deployers-vfs-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.5.GA/jboss-deployers-vfs-spi-2.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.5.GA/jboss-deployers-vfs-spi-2.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-deployment-spi/5.0.0.CR2/jboss-deployment-spi-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-deployment-spi/5.0.0.CR2/jboss-deployment-spi-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.CR1/jboss-ejb-api-3.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.CR1/jboss-ejb-api-3.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-cache/1.0.0/jboss-ejb3-cache-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-cache/1.0.0/jboss-ejb3-cache-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-cache/1.0.0/jboss-ejb3-cache-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-common/1.0.0/jboss-ejb3-common-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-common/1.0.0/jboss-ejb3-common-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-common/1.0.0/jboss-ejb3-common-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-endpoint/0.1.0/jboss-ejb3-endpoint-0.1.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-endpoint/0.1.0/jboss-ejb3-endpoint-0.1.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-endpoint/0.1.0/jboss-ejb3-endpoint-0.1.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api/1.0.0/jboss-ejb3-ext-api-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api/1.0.0/jboss-ejb3-ext-api-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-ext-api/1.0.0/jboss-ejb3-ext-api-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api-impl/1.0.0/jboss-ejb3-ext-api-impl-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api-impl/1.0.0/jboss-ejb3-ext-api-impl-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-ext-api-impl/1.0.0/jboss-ejb3-ext-api-impl-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-interceptors/1.0.2/jboss-ejb3-interceptors-1.0.2.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-interceptors/1.0.2/jboss-ejb3-interceptors-1.0.2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-metadata/1.0.0/jboss-ejb3-metadata-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-metadata/1.0.0/jboss-ejb3-metadata-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-metadata/1.0.0/jboss-ejb3-metadata-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-clustered/1.0.1/jboss-ejb3-proxy-clustered-1.0.1.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-clustered/1.0.1/jboss-ejb3-proxy-clustered-1.0.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-impl/1.0.2/jboss-ejb3-proxy-impl-1.0.2.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-impl/1.0.2/jboss-ejb3-proxy-impl-1.0.2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-spi/1.0.0/jboss-ejb3-proxy-spi-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-spi/1.0.0/jboss-ejb3-proxy-spi-1.0.0-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-security/1.0.0/jboss-ejb3-security-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-security/1.0.0/jboss-ejb3-security-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-security/1.0.0/jboss-ejb3-security-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-test/1.0.0/jboss-ejb3-test-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-test/1.0.0/jboss-ejb3-test-1.0.0-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/ejb3/jboss-ejb3-test/1.0.0/jboss-ejb3-test-1.0.0-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-timerservice-spi/1.0.0/jboss-ejb3-timerservice-spi-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-timerservice-spi/1.0.0/jboss-ejb3-timerservice-spi-1.0.0-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-transactions/1.0.1/jboss-ejb3-transactions-1.0.1.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-transactions/1.0.1/jboss-ejb3-transactions-1.0.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/embedded/jboss-embedded/beta3/jboss-embedded-beta3.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-client/1.1.1.GA/jboss-ha-client-1.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-client/1.1.1.GA/jboss-ha-client-1.1.1.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-server-api/1.1.1.GA/jboss-ha-server-api-1.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-server-api/1.1.1.GA/jboss-ha-server-api-1.1.1.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jacc-api/1.1.0.CR1/jboss-jacc-api-1.1.0.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jacc-api/1.1.0.CR1/jboss-jacc-api-1.1.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jad-api/1.2.0.CR2/jboss-jad-api-1.2.0.CR2.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jad-api/1.2.0.CR2/jboss-jad-api-1.2.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0.0.CR1/jboss-jaspi-api-1.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0.0.CR1/jboss-jaspi-api-1.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jbossws/jboss-jaxrpc/1.0.4.GA/jboss-jaxrpc-1.0.4.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.CR1/jboss-jca-api-1.5.0.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.CR1/jboss-jca-api-1.5.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-jca-spi/5.0.3.GA/jboss-jca-spi-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-jca-spi/5.0.3.GA/jboss-jca-spi-5.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.CR1/jboss-jms-api-1.1.0.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.CR1/jboss-jms-api-1.1.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0-CR1/jboss-jpa-deployers-1.0.0-CR1.jar" sourcepath="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0-CR1/jboss-jpa-deployers-1.0.0-CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.0.CR5/jboss-kernel-2.0.0.CR5.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.0.CR5/jboss-kernel-2.0.0.CR5-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.0.5.GA/jboss-logging-log4j-2.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.0.5.GA/jboss-logging-log4j-2.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-managed/2.0.0.CR1/jboss-managed-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-managed/2.0.0.CR1/jboss-managed-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-mdr/2.0.0.CR3/jboss-mdr-2.0.0.CR3.jar" sourcepath="M2_REPO/org/jboss/jboss-mdr/2.0.0.CR3/jboss-mdr-2.0.0.CR3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.0.CR16/jboss-metadata-1.0.0.CR16.jar" sourcepath="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.0.CR16/jboss-metadata-1.0.0.CR16-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-metatype/2.0.0.CR1/jboss-metatype-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-metatype/2.0.0.CR1/jboss-metatype-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/profiler/jvmti/jboss-profiler-jvmti/1.0.0.CR5/jboss-profiler-jvmti-1.0.0.CR5.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-reflect/2.0.0.CR1/jboss-reflect-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/jboss-reflect/2.0.0.CR1/jboss-reflect-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/remoting/jboss-remoting/2.4.0.CR2/jboss-remoting-2.4.0.CR2.jar" sourcepath="M2_REPO/org/jboss/remoting/jboss-remoting/2.4.0.CR2/jboss-remoting-2.4.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-remoting-aspects/1.0.2/jboss-remoting-aspects-1.0.2.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-remoting-aspects/1.0.2/jboss-remoting-aspects-1.0.2-sources.jar">
+    <attributes>
+      <attribute value="jar:file:/home/alrubinger/.m2/repository/org/jboss/aspects/jboss-remoting-aspects/1.0.2/jboss-remoting-aspects-1.0.2-javadoc.jar!/" name="javadoc_location"/>
+    </attributes>
+  </classpathentry>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-security-aspects/1.0.0.GA/jboss-security-aspects-1.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-security-aspects/1.0.0.GA/jboss-security-aspects-1.0.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-security-spi/2.0.2.SP2/jboss-security-spi-2.0.2.SP2.jar" sourcepath="M2_REPO/org/jboss/security/jboss-security-spi/2.0.2.SP2/jboss-security-spi-2.0.2.SP2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jboss-serialization/1.0.3.GA/jboss-serialization-1.0.3.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-server-manager/0.1.0.GA/jboss-server-manager-0.1.0.GA.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-server-manager/0.1.0.GA/jboss-server-manager-0.1.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-servlet-api/2.5.0.GA/jboss-servlet-api-2.5.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-servlet-api/2.5.0.GA/jboss-servlet-api-2.5.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/test/jboss-test/1.1.0.GA/jboss-test-1.1.0.GA.jar" sourcepath="M2_REPO/org/jboss/test/jboss-test/1.1.0.GA/jboss-test-1.1.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-transaction-api/1.0.1.CR1/jboss-transaction-api-1.0.1.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-transaction-api/1.0.1.CR1/jboss-transaction-api-1.0.1.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-transaction-aspects/1.0.0.GA/jboss-transaction-aspects-1.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-transaction-aspects/1.0.0.GA/jboss-transaction-aspects-1.0.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.0.3.GA/jboss-transaction-spi-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.0.3.GA/jboss-transaction-spi-5.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/2.0.0.CR1/jboss-vfs-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/jboss-vfs/2.0.0.CR1/jboss-vfs-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar" sourcepath="M2_REPO/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jbossts/jbossjta/4.3.0.GA/jbossjta-4.3.0.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx/2.0.2.SP2/jbosssx-2.0.2.SP2.jar" sourcepath="M2_REPO/org/jboss/security/jbosssx/2.0.2.SP2/jbosssx-2.0.2.SP2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jbossts/jbossts-common/4.3.0.GA/jbossts-common-4.3.0.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.0.3.GA/jbossws-native-saaj-3.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.0.3.GA/jbossws-native-saaj-3.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/jbossws-spi/1.0.3.GA/jbossws-spi-1.0.3.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossxb/2.0.0.GA/jbossxb-2.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/jbossxb/2.0.0.GA/jbossxb-2.0.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA.jar" sourcepath="M2_REPO/jgroups/jgroups/2.6.7.GA/jgroups-2.6.7.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnp-client/5.0.0.CR2/jnp-client-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/naming/jnp-client/5.0.0.CR2/jnp-client-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnpserver/5.0.0.CR1/jnpserver-5.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/naming/jnpserver/5.0.0.CR1/jnpserver-5.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jpl-pattern/jpl-pattern/1.0/jpl-pattern-1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jpl-util/jpl-util/1.0/jpl-util-1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar" sourcepath="M2_REPO/junit/junit/4.4/junit-4.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/qdox/qdox/1.6.1/qdox-1.6.1.jar" sourcepath="M2_REPO/qdox/qdox/1.6.1/qdox-1.6.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/quartz/quartz/1.6.0/quartz-1.6.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0/stax-api-1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/trove/trove/1.0.2/trove-1.0.2.jar"/>
+  <classpathentry kind="var" path="M2_REPO/apache-xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/apache-xerces/xml-apis/2.9.1/xml-apis-2.9.1.jar"/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-  <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 </classpath>
\ No newline at end of file

Modified: projects/ejb3/trunk/core/pom.xml
===================================================================
--- projects/ejb3/trunk/core/pom.xml	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/core/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -396,6 +396,12 @@
       <artifactId>jboss-ejb3-metadata</artifactId>
       <version>1.0.0</version>
     </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.ejb3</groupId>
+      <artifactId>jboss-ejb3-metrics-spi</artifactId>
+      <version>0.1.0-SNAPSHOT</version>
+    </dependency>
 
     <dependency>
       <groupId>org.jboss.ejb3</groupId>

Modified: projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/Ejb3Deployment.java
===================================================================
--- projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/Ejb3Deployment.java	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/core/src/main/java/org/jboss/ejb3/Ejb3Deployment.java	2009-05-27 22:06:11 UTC (rev 89479)
@@ -55,6 +55,7 @@
 import org.jboss.ejb3.javaee.JavaEEComponentHelper;
 import org.jboss.ejb3.javaee.JavaEEModule;
 import org.jboss.ejb3.metadata.JBossSessionGenericWrapper;
+import org.jboss.ejb3.metrics.spi.SessionMetrics;
 import org.jboss.ejb3.pool.PoolFactoryRegistry;
 import org.jboss.ejb3.proxy.factory.ProxyFactoryHelper;
 import org.jboss.ejb3.proxy.factory.RemoteProxyFactoryRegistry;
@@ -135,6 +136,11 @@
    private EjbReferenceResolver ejbReferenceResolver;
 
    private PersistenceUnitDependencyResolver persistenceUnitDependencyResolver;
+   
+   /**
+    * Metrics used in Session Beans
+    */
+   private SessionMetrics metrics;
 
    /**
     * Do not deploy persistence unit anymore.
@@ -265,8 +271,24 @@
    {
       this.poolFactoryRegistry = poolFactoryRegistry;
    }
+   
+   /**
+    * @return the metrics
+    */
+   public SessionMetrics getMetrics()
+   {
+      return metrics;
+   }
 
    /**
+    * @param metrics the metrics to set
+    */
+   public void setMetrics(final SessionMetrics metrics)
+   {
+      this.metrics = metrics;
+   }
+
+   /**
     * @deprecated processing persistence units is no longer supported, use jpa-deployers
     * @param b
     */

Modified: projects/ejb3/trunk/ejb3/pom.xml
===================================================================
--- projects/ejb3/trunk/ejb3/pom.xml	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/ejb3/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -34,7 +34,7 @@
     into the AS
     
      -->
-    <version.org.jboss.ejb3_core>1.1.6</version.org.jboss.ejb3_core>
+    <version.org.jboss.ejb3_core>1.1.7-SNAPSHOT</version.org.jboss.ejb3_core>
     <version.org.jboss.ejb3_deployers>1.0.0</version.org.jboss.ejb3_deployers>
   
   </properties>


Property changes on: projects/ejb3/trunk/metrics-deployer
___________________________________________________________________
Name: svn:ignore
   + target
eclipse-target
.settings

Name: svn:mergeinfo
   + 

Added: projects/ejb3/trunk/metrics-deployer/.classpath
===================================================================
--- projects/ejb3/trunk/metrics-deployer/.classpath	                        (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/.classpath	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry kind="src" output="target/tests-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/tests-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: projects/ejb3/trunk/metrics-deployer/.project
===================================================================
--- projects/ejb3/trunk/metrics-deployer/.project	                        (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/.project	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,17 @@
+<projectDescription>
+  <name>jboss-ejb3-metrics-deployer</name>
+  <comment>Metrics Implementation for EJB 3.x Containers</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+    <buildCommand>
+      <name>org.maven.ide.eclipse.maven2Builder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+    <nature>org.maven.ide.eclipse.maven2Nature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: projects/ejb3/trunk/metrics-deployer/pom.xml
===================================================================
--- projects/ejb3/trunk/metrics-deployer/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,78 @@
+<!--
+  vi:ts=2:sw=2:expandtab
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <!-- Define Parent -->
+  <parent>
+    <groupId>org.jboss.ejb3</groupId>
+    <artifactId>jboss-ejb3-build</artifactId>
+    <version>1.0.0</version>
+    <relativePath>../build/pom.xml</relativePath>
+  </parent>
+
+  <!-- Maven POM Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+
+  <!-- Artifact Information -->
+  <groupId>org.jboss.ejb3</groupId>
+  <artifactId>jboss-ejb3-metrics-deployer</artifactId>
+  <version>0.1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>JBoss EJB 3.x Metrics Implementation</name>
+  <description>Metrics Implementation for EJB 3.x Containers</description>
+
+  <!-- Build Configuration -->
+  <build>
+    
+  </build>
+  
+  <properties>
+  
+    <!-- Versioning -->
+    <version.org.jboss.deployers.jboss_deployers_spi>2.0.0.CR2</version.org.jboss.deployers.jboss_deployers_spi>
+    <version.org.jboss.ejb3_jboss.ejb3.core>1.1.7-SNAPSHOT</version.org.jboss.ejb3_jboss.ejb3.core>
+    <version.org.jboss.man_jboss.managed>2.1.0.SP1</version.org.jboss.man_jboss.managed>
+    <version.org.jboss.microcontainer_jboss.jmx.mc.int>2.2.0.M2</version.org.jboss.microcontainer_jboss.jmx.mc.int>
+  
+  </properties>
+
+  <dependencies>
+  
+    <!-- 
+    Dependencies: org.jboss.ejb3 
+    -->
+    
+    <dependency>
+      <groupId>org.jboss.ejb3</groupId>
+      <artifactId>jboss-ejb3-core</artifactId>
+      <version>${version.org.jboss.ejb3_jboss.ejb3.core}</version>
+    </dependency>
+    
+    <!-- 
+    Dependencies: External to EJB3 
+    -->
+    
+    <dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-spi</artifactId>
+      <version>${version.org.jboss.deployers.jboss_deployers_spi}</version>
+    </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.man</groupId>
+      <artifactId>jboss-managed</artifactId>
+      <version>${version.org.jboss.man_jboss.managed}</version>
+    </dependency>
+    
+    <!-- For compilation -->
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-jmx-mc-int</artifactId>
+      <version>${version.org.jboss.microcontainer_jboss.jmx.mc.int}</version>
+    </dependency>
+    
+  </dependencies>
+</project>

Added: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicSessionMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicSessionMetrics.java	                        (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/BasicSessionMetrics.java	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,171 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.metrics.deployer;
+
+import org.jboss.ejb3.metrics.spi.SessionMetrics;
+import org.jboss.managed.api.annotation.ManagementComponent;
+import org.jboss.managed.api.annotation.ManagementObject;
+import org.jboss.managed.api.annotation.ManagementProperties;
+import org.jboss.managed.api.annotation.ManagementProperty;
+import org.jboss.managed.api.annotation.ViewUse;
+
+/**
+ * BasicSessionMetrics
+ * 
+ * Threadsafe implementation of a session metrics collector.
+ * Additionally exposed as a management object
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+ at ManagementObject(isRuntime = true, properties = ManagementProperties.EXPLICIT, description = "Some test", componentType = @ManagementComponent(type = "MCBean", subtype = "*"))
+public class BasicSessionMetrics implements SessionMetrics
+{
+
+   // --------------------------------------------------------------------------------||
+   // Instance Members ---------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /**
+    * Number of bean instances in the underlying pool/cache
+    * available for service.  Synchronized on "this".  
+    */
+   private int availableCount;
+
+   /**
+    * Number of bean instances created for this EJB.
+    * Synchronized on "this".
+    */
+   private int createCount;
+
+   /**
+    * Number of bean instances in the underlying 
+    * pool/cache.  Synchronized on "this".
+    */
+   private int currentSize;
+
+   /**
+    * Size of the underlying instance pool/cache
+    * at its highest.  Synchronized on "this".
+    */
+   private int maxSize;
+
+   /**
+    * Number of bean instances removed from the
+    * underlying pool/cache.  Synchronized on "this".
+    */
+   private int removeCount;
+
+   // --------------------------------------------------------------------------------||
+   // Required Implementations -------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /* (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getAvailableCount()
+    */
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   public synchronized int getAvailableCount()
+   {
+      return this.availableCount;
+   }
+
+   /* (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getCreateCount()
+    */
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   public synchronized int getCreateCount()
+   {
+      return this.createCount;
+   }
+
+   /* (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getCurrentSize()
+    */
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   public synchronized int getCurrentSize()
+   {
+      return this.currentSize;
+   }
+
+   /* (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getMaxSize()
+    */
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   public synchronized int getMaxSize()
+   {
+      return this.maxSize;
+   }
+
+   /* (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#getRemoveCount()
+    */
+   @ManagementProperty(readOnly = true, use = ViewUse.STATISTIC)
+   public synchronized int getRemoveCount()
+   {
+      return this.removeCount;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#setAvailableCount(int)
+    */
+   public synchronized void setAvailableCount(final int availableCount)
+   {
+      this.availableCount = availableCount;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#setCreateCount(int)
+    */
+   public synchronized void setCreateCount(final int createCount)
+   {
+      this.createCount = createCount;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#setCurrentSize(int)
+    */
+   public synchronized void setCurrentSize(final int currentSize)
+   {
+      this.currentSize = currentSize;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#setMaxSize(int)
+    */
+   public synchronized void setMaxSize(final int maxSize)
+   {
+      this.maxSize = maxSize;
+   }
+
+   /*
+    * (non-Javadoc)
+    * @see org.jboss.ejb3.metrics.spi.SessionMetrics#setRemoveCount(int)
+    */
+   public synchronized void setRemoveCount(final int removeCount)
+   {
+      this.removeCount = removeCount;
+   }
+}

Added: projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java	                        (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/src/main/java/org/jboss/ejb3/metrics/deployer/Ejb3MetricsDeployer.java	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,160 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.metrics.deployer;
+
+import org.jboss.beans.metadata.plugins.AbstractConstructorMetaData;
+import org.jboss.beans.metadata.plugins.AbstractValueMetaData;
+import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.beans.metadata.spi.builder.BeanMetaDataBuilder;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.ejb3.Ejb3Deployment;
+import org.jboss.ejb3.metrics.spi.SessionMetrics;
+import org.jboss.logging.Logger;
+
+/**
+ * Ejb3MetricsDeployer
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public class Ejb3MetricsDeployer extends AbstractSimpleRealDeployer<Ejb3Deployment>
+{
+
+   // ------------------------------------------------------------------------------||
+   // Class Members ----------------------------------------------------------------||
+   // ------------------------------------------------------------------------------||
+
+   /**
+    * Logger
+    */
+   private static final Logger log = Logger.getLogger(Ejb3MetricsDeployer.class);
+
+   /**
+    * Name of our output, a flag upon which other deployers may rely
+    */
+   public static final String NAME_OUTPUT = Ejb3MetricsDeployer.class.getName();
+
+   /**
+    * Suffix to append to the Deployment name in order to create a unique bind name 
+    * for the metrics POJO
+    */
+   private static final String BEAN_NAME_METRICS_SUFFIX = "-metrics";
+
+   // ------------------------------------------------------------------------------||
+   // Constructor ------------------------------------------------------------------||
+   // ------------------------------------------------------------------------------||
+
+   /**
+    * Constructor; sets deployment stage and requisite input/output chain
+    */
+   public Ejb3MetricsDeployer()
+   {
+      // Invoke super
+      super(Ejb3Deployment.class);
+
+      // Output is a flag upon which other deployers may rely
+      this.addOutput(NAME_OUTPUT);
+   }
+
+   // ------------------------------------------------------------------------------||
+   // Required Implementations -----------------------------------------------------||
+   // ------------------------------------------------------------------------------||
+
+   /**
+    * Creates a new Metrics collector for the EJB3 Deployment (typically created 
+    * by the Ejb3Deployer) attached to this DeploymentUnit.  Installs the metrics 
+    * into MC and sets upon the EJB3 Deployment.
+    */
+   @Override
+   public void deploy(final DeploymentUnit du, final Ejb3Deployment deployment) throws DeploymentException
+   {
+      // Determine if we process this deployment
+      if (deployment == null)
+      {
+         // Not an EJB3 Deployment
+         if (log.isTraceEnabled())
+         {
+            log.trace("Skipping non-EJB3 Deployment: " + du);
+         }
+         return;
+      }
+
+      // Log
+      if (log.isTraceEnabled())
+      {
+         log.trace("Deploying EJB3 Session metrics for : " + du);
+      }
+
+      // Make a new metrics definition
+      final String metricsBeanName = deployment.getName() + BEAN_NAME_METRICS_SUFFIX;
+      final SessionMetrics metrics = new BasicSessionMetrics();
+      final BeanMetaDataBuilder bmdb = BeanMetaDataBuilder.createBuilder(metricsBeanName, metrics.getClass().getName());
+      bmdb.setConstructorValue(new AlreadyInstantiated(metrics));
+      final BeanMetaData bean = bmdb.getBeanMetaData();
+
+      // Add the attachment
+      du.addAttachment(BeanMetaData.class, bean);
+
+      // Set metrics upon the deployment
+      deployment.setMetrics(metrics);
+      log.debug("Set EJB3 metrics upon " + du);
+
+      // Set a flag showing we were here as the output
+      du.addAttachment(NAME_OUTPUT, true, Boolean.class);
+   }
+
+   // ------------------------------------------------------------------------------||
+   // Required Implementations -----------------------------------------------------||
+   // ------------------------------------------------------------------------------||
+
+   /**
+    * Constructor metadata which uses an underlying bean already 
+    * instanciated.
+    * 
+    * @author Scott Stark
+    */
+   private static class AlreadyInstantiated extends AbstractConstructorMetaData
+   {
+      private static final long serialVersionUID = 1L;
+
+      private Object bean;
+
+      public class Factory
+      {
+         public Object create()
+         {
+            return bean;
+         }
+      }
+
+      public AlreadyInstantiated(Object bean)
+      {
+         this.bean = bean;
+         this.setFactory(new AbstractValueMetaData(new Factory()));
+         this.setFactoryClass(Factory.class.getName());
+         this.setFactoryMethod("create");
+      }
+   }
+
+}

Added: projects/ejb3/trunk/metrics-deployer/src/main/resources/META-INF/jboss-beans.xml
===================================================================
--- projects/ejb3/trunk/metrics-deployer/src/main/resources/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/ejb3/trunk/metrics-deployer/src/main/resources/META-INF/jboss-beans.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+  <!-- Define the EJB3 Metrics Deployer -->
+  <bean name="org.jboss.ejb3.Ejb3MetricsDeployer"
+    class="org.jboss.ejb3.metrics.deployer.Ejb3MetricsDeployer" />
+
+</deployment>
\ No newline at end of file


Property changes on: projects/ejb3/trunk/metrics-spi
___________________________________________________________________
Name: svn:ignore
   + target
.settings
eclipse-target


Added: projects/ejb3/trunk/metrics-spi/.classpath
===================================================================
--- projects/ejb3/trunk/metrics-spi/.classpath	                        (rev 0)
+++ projects/ejb3/trunk/metrics-spi/.classpath	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry kind="src" output="target/tests-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/tests-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Added: projects/ejb3/trunk/metrics-spi/.project
===================================================================
--- projects/ejb3/trunk/metrics-spi/.project	                        (rev 0)
+++ projects/ejb3/trunk/metrics-spi/.project	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,17 @@
+<projectDescription>
+  <name>jboss-ejb3-metrics-spi</name>
+  <comment>Metrics for EJB 3.x Containers</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+    <buildCommand>
+      <name>org.maven.ide.eclipse.maven2Builder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+    <nature>org.maven.ide.eclipse.maven2Nature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: projects/ejb3/trunk/metrics-spi/pom.xml
===================================================================
--- projects/ejb3/trunk/metrics-spi/pom.xml	                        (rev 0)
+++ projects/ejb3/trunk/metrics-spi/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,52 @@
+<!--
+  vi:ts=2:sw=2:expandtab
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" 
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+  <!-- Define Parent -->
+  <parent>
+    <groupId>org.jboss.ejb3</groupId>
+    <artifactId>jboss-ejb3-build</artifactId>
+    <version>1.0.0</version>
+    <relativePath>../build/pom.xml</relativePath>
+  </parent>
+
+  <!-- Maven POM Model Version -->
+  <modelVersion>4.0.0</modelVersion>
+
+  <!-- Artifact Information -->
+  <groupId>org.jboss.ejb3</groupId>
+  <artifactId>jboss-ejb3-metrics-spi</artifactId>
+  <version>0.1.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>JBoss EJB 3.x Metrics SPI</name>
+  <description>Metrics for EJB 3.x Containers</description>
+
+  <!-- Build Configuration -->
+  <build>
+  
+    
+  </build>
+  
+  <properties>
+  
+    <!-- Versioning -->
+
+  
+  </properties>
+
+  <dependencies>
+  
+    <!-- 
+    Dependencies: org.jboss.ejb3 
+    -->
+    
+    
+    <!-- 
+    Dependencies: External to EJB3 
+    -->
+    
+  </dependencies>
+</project>

Added: projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/metrics/spi/SessionMetrics.java
===================================================================
--- projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/metrics/spi/SessionMetrics.java	                        (rev 0)
+++ projects/ejb3/trunk/metrics-spi/src/main/java/org/jboss/ejb3/metrics/spi/SessionMetrics.java	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,118 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+  *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.ejb3.metrics.spi;
+
+/**
+ * SessionMetrics
+ * 
+ * Represents metrics of any type of EJB 3.x Session Bean
+ *
+ * @author <a href="mailto:andrew.rubinger at jboss.org">ALR</a>
+ * @version $Revision: $
+ */
+public interface SessionMetrics
+{
+   // --------------------------------------------------------------------------------||
+   // Contracts ----------------------------------------------------------------------||
+   // --------------------------------------------------------------------------------||
+
+   /**
+    * Obtains the current size of the underlying 
+    * pool/cache of bean instances
+    * 
+    * @return
+    */
+   int getCurrentSize();
+
+   /**
+    * Sets the current size of the underlying 
+    * pool/cache of bean instances
+    * 
+    * @param currentSize
+    * @throws IllegalArgumentException If the count is < 0
+    */
+   void setCurrentSize(int currentSize) throws IllegalArgumentException;
+
+   /**
+    * Obtains the number of instances created for this EJB
+    * 
+    * @return
+    */
+   int getCreateCount();
+
+   /**
+    * Sets the number of instances created for this EJB
+    * 
+    * @param createCount
+    * @throws IllegalArgumentException If the count is < 0
+    */
+   void setCreateCount(int createCount) throws IllegalArgumentException;
+
+   /**
+    * Obtains the number of instances removed for this EJB
+    * 
+    * @return
+    */
+   int getRemoveCount();
+
+   /**
+    * Sets the number of instances removed for this EJB
+    * 
+    * @param removeCount
+    * @throws IllegalArgumentException If the count is < 0
+    */
+   void setRemoveCount(int removeCount) throws IllegalArgumentException;
+
+   /**
+    * Obtains the number of instances currently available for 
+    * service for this EJB
+    * 
+    * @return
+    */
+   int getAvailableCount();
+
+   /**
+    * Sets the number of instances currently available for 
+    * service for this EJB
+    * 
+    * @param availableCount
+    * @throws IllegalArgumentException If the count is < 0
+    */
+   void setAvailableCount(int availableCount) throws IllegalArgumentException;
+
+   /**
+    * Obtains the size of the underlying instance pool/cache
+    * at it highest 
+    * 
+    * @return
+    */
+   int getMaxSize();
+
+   /**
+    * Sets the size of the underlying instance pool/cache
+    * at it highest 
+    * 
+    * @param maxSize
+    * @throws IllegalArgumentException If the count is < 0
+    */
+   void setMaxSize(int maxSize) throws IllegalArgumentException;
+}

Modified: projects/ejb3/trunk/plugin/pom.xml
===================================================================
--- projects/ejb3/trunk/plugin/pom.xml	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/plugin/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -63,7 +63,7 @@
     <dependency>
       <groupId>org.jboss.ejb3</groupId>
       <artifactId>jboss-ejb3-as-int</artifactId>
-      <version>1.1.6</version>
+      <version>1.1.7-SNAPSHOT</version>
       <optional>true</optional>
     </dependency>
 
@@ -79,7 +79,7 @@
       <groupId>org.jboss.ejb3</groupId>
       <artifactId>jboss-ejb3-core</artifactId>
       <classifier>client</classifier>
-      <version>1.1.6</version>
+      <version>1.1.7-SNAPSHOT</version>
       <optional>true</optional>
     </dependency>
 
@@ -97,6 +97,20 @@
       </exclusions>
       <optional>true</optional>
     </dependency>
+    
+    <dependency>
+      <groupId>org.jboss.ejb3</groupId>
+      <artifactId>jboss-ejb3-metrics-deployer</artifactId>
+      <version>0.1.0-SNAPSHOT</version>
+      <!-- Prevent the EJB3 core dependency from being pulled in -->
+      <exclusions>
+        <exclusion>
+            <groupId>org.jboss.ejb3</groupId>
+            <artifactId>jboss-ejb3-core</artifactId>
+        </exclusion>
+      </exclusions>
+      <optional>true</optional>
+    </dependency>
 
     <dependency>
       <groupId>org.jboss.ejb3</groupId>

Modified: projects/ejb3/trunk/plugin/src/main/resources/installer.xml
===================================================================
--- projects/ejb3/trunk/plugin/src/main/resources/installer.xml	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/plugin/src/main/resources/installer.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -44,6 +44,8 @@
         <include>org.jboss.ejb3:jboss-ejb3-interceptors:jar</include>
         <include>org.jboss.ejb3:jboss-ejb3-metadata:jar</include>
         <include>org.jboss.ejb3:jboss-ejb3-mc-int:jar</include>
+        <include>org.jboss.ejb3:jboss-ejb3-metrics-deployer:jar</include>
+        <include>org.jboss.ejb3:jboss-ejb3-metrics-spi:jar</include>
         <include>org.jboss.ejb3:jboss-ejb3-proxy-impl:jar</include>
         <include>org.jboss.ejb3:jboss-ejb3-proxy-spi:jar</include>
         <include>org.jboss.ejb3:jboss-ejb3-proxy-clustered:jar</include>

Added: projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-deployer.xml
===================================================================
--- projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-deployer.xml	                        (rev 0)
+++ projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-deployer.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,18 @@
+<!-- 
+   vi:ts=3:sw:expandtab
+-->
+<project name="jboss-ejb3-metrics-deployer" default="install">
+  <import file="setup.xml"/>
+
+  <target name="install">
+     <copy file="lib/jboss-ejb3-metrics-deployer.jar" todir="${jboss.home}/server/default/deployers" verbose="${verbose}"/>
+     <copy file="lib/jboss-ejb3-metrics-deployer.jar" todir="${jboss.home}/server/all/deployers" verbose="${verbose}"/>
+     <copy file="lib/jboss-ejb3-metrics-deployer.jar" todir="${jboss.home}/server/standard/deployers" verbose="${verbose}"/>
+  </target>
+
+  <target name="uninstall">
+     <delete file="${jboss.home}/server/default/deployers/jboss-ejb3-metrics-deployer.jar" verbose="${verbose}"/>
+     <delete file="${jboss.home}/server/all/deployers/jboss-ejb3-endpoint-metrics.jar" verbose="${verbose}"/>
+     <delete file="${jboss.home}/server/standard/deployers/jboss-ejb3-metrics-deployer.jar" verbose="${verbose}"/>
+  </target>
+</project>

Added: projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-spi.xml
===================================================================
--- projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-spi.xml	                        (rev 0)
+++ projects/ejb3/trunk/plugin/src/main/resources/jboss-ejb3-metrics-spi.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -0,0 +1,14 @@
+<!-- 
+   vi:ts=3:sw:expandtab
+-->
+<project name="jboss-ejb3-metrics-spi" default="install">
+  <import file="setup.xml"/>
+
+  <target name="install">
+     <copy file="lib/jboss-ejb3-metrics-spi.jar" todir="${jboss.home}/common/lib" verbose="${verbose}"/>
+  </target>
+
+  <target name="uninstall">
+     <delete file="${jboss.home}/common/lib/jboss-ejb3-metrics-spi.jar" verbose="${verbose}"/>
+  </target>
+</project>

Modified: projects/ejb3/trunk/plugin/src/main/resources/package-list.txt
===================================================================
--- projects/ejb3/trunk/plugin/src/main/resources/package-list.txt	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/plugin/src/main/resources/package-list.txt	2009-05-27 22:06:11 UTC (rev 89479)
@@ -1,3 +1,5 @@
 jboss-ejb3-timerservice-spi.xml
 jboss-ejb3-endpointdeployer.xml
 jboss-ejb3-endpoint.xml
+jboss-ejb3-metrics-spi.xml
+jboss-ejb3-metrics-deployer.xml

Modified: projects/ejb3/trunk/pom.xml
===================================================================
--- projects/ejb3/trunk/pom.xml	2009-05-27 21:01:07 UTC (rev 89478)
+++ projects/ejb3/trunk/pom.xml	2009-05-27 22:06:11 UTC (rev 89479)
@@ -55,6 +55,8 @@
     <module>interceptors</module>
     <!-- <module>locator</module> -->
     <module>metadata</module>
+    <module>metrics-deployer</module>
+    <module>metrics-spi</module>
     <module>mc-int</module>
     <module>plugin</module>
     <module>pool</module>




More information about the jboss-cvs-commits mailing list