[jboss-cvs] JBossAS SVN: r90008 - in projects/microcontainer/mcdocs/trunk: examples/User_Guide/gettingStarted/commandLineClient and 22 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jun 9 17:55:23 EDT 2009


Author: kabir.khan at jboss.com
Date: 2009-06-09 17:55:23 -0400 (Tue, 09 Jun 2009)
New Revision: 90008

Modified:
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/aop.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/common.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/config/aop-beans.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/humanResourcesService/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/pom.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/alias/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/alias/pom.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/annotations/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/annotations/pom.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/autowiring/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/classloader/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/collections/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/constructor/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/demand/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/dist.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/factory/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/injection/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/installation/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/javabeans/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/lifecycle/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/locator/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/locator/pom.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/pom.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/properties/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/simple/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/spring/
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/spring/pom.xml
   projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/supply/
   projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml
Log:
Update examples to latest versions of libraries. Update aop example to use the new style xml in both the example and user guide. Update user guide installation section pointing to the downloads. Add target directories to svn:ignore


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/aop.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/aop.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/aop.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -19,7 +19,7 @@
         <include>org.jboss.microcontainer.examples:auditAspect</include>
         <include>org.jboss.aop:jboss-aop</include>
         <include>org.jboss.microcontainer:jboss-aop-mc-int</include>
-        <include>org.jboss:javassist</include>
+        <include>javassist:javassist</include>
         <include>trove:trove</include>
       </includes>
     </dependencySet>

Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/common.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/common.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/assembly/common.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -23,15 +23,15 @@
        <includes>
         <include>org.jboss.microcontainer:jboss-kernel</include>
         <include>org.jboss.microcontainer:jboss-dependency</include>
-        <include>org.jboss.microcontainer:jboss-container</include>
         <include>org.jboss:jboss-common-core</include>
-        <include>jboss:jboss-common-core</include>
-        <include>jboss:jboss-common-logging-spi</include>
-        <include>jboss:jboss-common-logging-log4j</include>
+        <include>org.jboss:jboss-reflect</include>
+        <include>org.jboss:jboss-mdr</include>
+        <include>org.jboss.logging:jboss-logging-spi</include>
+        <include>org.jboss.logging:jboss-logging-log4j</include>
         <include>log4j:log4j</include>
         <include>org.jboss:jbossxb</include>
         <include>apache-xerces:xercesImpl</include>
-        <include>oswego-concurrent:concurrent</include>
+        <include>sun-jaxb:jaxb-api</include>
       </includes>
     </dependencySet>
   </dependencySets>

Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/config/aop-beans.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/config/aop-beans.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/commandLineClient/src/main/config/aop-beans.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -9,10 +9,13 @@
    </bean>
    
    <aop:aspect xmlns:aop="urn:jboss:aop-beans:1.0"
-               name="AuditAspect" class="org.jboss.example.aspect.AuditAspect"
+               name="AuditAspect" class="org.jboss.example.aspect.AuditAspect"/>
+   
+   <aop:bind xmlns:aop="urn:jboss:aop-beans:1.0"
                method="audit" pointcut="execution(public org.jboss.example.service.HRManager->new(..)) OR
                                         execution(public * org.jboss.example.service.HRManager->*(..))">
-   </aop:aspect>
+      <aop:advice name="audit" aspect="AuditAspect"/>
+   </aop:bind>
 
    <bean name="HRService" class="org.jboss.example.service.HRManager">
      <!-- <property name="hiringFreeze">true</property>    


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/humanResourcesService
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/pom.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/pom.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/gettingStarted/pom.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -22,77 +22,77 @@
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-kernel</artifactId>
-        <version>${release}</version>
+        <version>${kernel.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-client-spi</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-client</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-core-spi</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-core</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-impl</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-spi</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-structure-spi</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-vfs-spi</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-deployers-vfs</artifactId>
-        <version>${release}</version>
+        <version>${deployers.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-managed</artifactId>
-        <version>${release}</version>
+        <version>${managed.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-metatype</artifactId>
-        <version>${release}</version>
+        <version>${metatype.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss</groupId>
         <artifactId>jboss-vfs</artifactId>
-        <version>2.0.0.Beta6</version>
+        <version>${vfs.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.aop</groupId>
         <artifactId>jboss-aop</artifactId>
-        <version>2.0.0.beta1</version>
+        <version>${aop.release}</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-aop-mc-int</artifactId>
-        <version>${release}</version>
+        <version>${kernel.release}</version>
         <scope>runtime</scope>
       </dependency>
       <dependency>
@@ -121,7 +121,13 @@
   </build>
 
     <properties>
-        <release>2.0.0.Beta9</release>
+        <aop.release>2.1.1.GA</aop.release>
+        <deployers.release>2.0.7.GA</deployers.release>
+        <kernel.release>2.0.6.GA</kernel.release>
+        <logging.release>2.1.0.SP1</logging.release>
+        <managed.release>2.1.0.SP1</managed.release>
+        <metatype.release>2.1.0.SP1</metatype.release>
+        <vfs.release>2.1.2.GA</vfs.release>
     </properties>
 
 </project>


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/alias
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/alias/pom.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/alias/pom.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/alias/pom.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -15,14 +15,6 @@
   <name>Alias</name>
   <description></description>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.jboss.microcontainer</groupId>
-      <artifactId>jboss-kernel</artifactId>
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-
   <properties>
     <parent.relative.dir>..</parent.relative.dir>
   </properties>


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/annotations
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/annotations/pom.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/annotations/pom.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/annotations/pom.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -15,14 +15,6 @@
   <name>Annotations</name>
   <description></description>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.jboss.microcontainer</groupId>
-      <artifactId>jboss-kernel</artifactId>
-      <scope>compile</scope>      
-    </dependency>
-  </dependencies>
-
   <properties>
     <parent.relative.dir>..</parent.relative.dir>
   </properties>


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/autowiring
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/classloader
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/collections
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/constructor
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/demand
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/dist.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/dist.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/dist.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -28,15 +28,15 @@
        <includes>
         <include>org.jboss.microcontainer:jboss-kernel</include>
         <include>org.jboss.microcontainer:jboss-dependency</include>
-        <include>org.jboss.microcontainer:jboss-container</include>
         <include>org.jboss:jboss-common-core</include>
-        <include>jboss:jboss-common-core</include>
-        <include>jboss:jboss-common-logging-spi</include>
-        <include>jboss:jboss-common-logging-log4j</include>
-        <include>log4j:log4j</include>
+        <include>org.jboss:jboss-reflect</include>
+        <include>org.jboss:jboss-mdr</include>
+        <include>org.jboss.logging:jboss-logging-spi</include>
+        <include>org.jboss.logging:jboss-logging-log4j</include>
+        <include>apache-log4j:log4j</include>
         <include>org.jboss:jbossxb</include>
         <include>apache-xerces:xercesImpl</include>
-        <include>oswego-concurrent:concurrent</include>
+        <include>sun-jaxb:jaxb-api</include>
       </includes>
     </dependencySet>
   </dependencySets>


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/factory
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/injection
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/installation
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/javabeans
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/lifecycle
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/locator
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/locator/pom.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/locator/pom.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/locator/pom.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -15,14 +15,6 @@
   <name>Locator</name>
   <description></description>
 
-  <dependencies>
-    <dependency>
-      <groupId>org.jboss.microcontainer</groupId>
-      <artifactId>jboss-kernel</artifactId>
-      <scope>compile</scope>      
-    </dependency>
-  </dependencies>
-
   <properties>
     <parent.relative.dir>..</parent.relative.dir>
   </properties>

Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/pom.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/pom.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/pom.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -34,13 +34,18 @@
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-kernel</artifactId>
-        <version>2.0.0.Beta6</version>
+        <version>2.0.6.GA</version>
       </dependency>
       <dependency>
         <groupId>org.jboss.microcontainer</groupId>
         <artifactId>jboss-spring-int</artifactId>
-        <version>2.0.0.Beta6</version>
+        <version>2.0.6.GA</version>
       </dependency>
+      <dependency>
+        <groupId>org.jboss.logging</groupId>
+        <artifactId>jboss-logging-log4j</artifactId>
+        <version>2.0.5.GA</version>
+      </dependency>
     </dependencies>
   </dependencyManagement>
 
@@ -48,6 +53,11 @@
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-kernel</artifactId>
+      <scope>compile</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-log4j</artifactId>
       <scope>runtime</scope>
     </dependency>
   </dependencies>
@@ -104,5 +114,6 @@
 
   <properties>
     <parent.relative.dir>.</parent.relative.dir>
+    <kernel.version>2.0.6.GA</kernel.version>
   </properties>
 </project>


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/properties
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/simple
___________________________________________________________________
Name: svn:ignore
   + target



Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/spring
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/spring/pom.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/spring/pom.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/spring/pom.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -19,7 +19,7 @@
     <dependency>
       <groupId>org.jboss.microcontainer</groupId>
       <artifactId>jboss-spring-int</artifactId>
-      <scope>runtime</scope>
+      <scope>compile</scope>      
     </dependency>
   </dependencies>
 


Property changes on: projects/microcontainer/mcdocs/trunk/examples/User_Guide/pojoDevelopment/supply
___________________________________________________________________
Name: svn:ignore
   + target


Modified: projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml
===================================================================
--- projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml	2009-06-09 21:51:06 UTC (rev 90007)
+++ projects/microcontainer/mcdocs/trunk/userguide/src/main/docbook/User_Guide.xml	2009-06-09 21:55:23 UTC (rev 90008)
@@ -4,7 +4,7 @@
 ]>
 <book>
   <bookinfo>
-    <title>JBoss Microcontainer 2.0.0 Beta9</title>
+    <title>JBoss Microcontainer 2.0.0.GA</title>
     <subtitle>User Guide</subtitle>
     <issuenum> 2.0</issuenum>
     <productnumber>2</productnumber>
@@ -44,11 +44,12 @@
     </chapter>
     <chapter>
       <title>Download and Installing</title>
-      <para>JBoss Microcontainer 2.0.0 is currently only available as a beta release via Maven2. This means that you need to install and configure Maven before you can begin development. Once this is done then you can create a maven project that depends on the JBoss Microcontainer JARs in order to download and install them into your local maven repository. You can then create an assembly for your final application in order to package the relevant JARs into a distributable format.</para>
-      <para>The examples created for this User Guide use Maven2 to achieve exactly this so it is highly recommended that you <ulink url="http://labs.jboss.com/file-access/default/members/jbossmc/downloads/userGuide-examples-13112007.zip">download</ulink> these first and take a look at how they work.</para>
+      <para>JBoss Microcontainer 2.0.0 is available for download from <ulink url="http://www.jboss.org/jbossmc/downloads">the JBoss Microcontainer downloads</ulink> page. The initial downloads page is split into two sections: <ulink url="http://www.jboss.org/jbossmc/downloads/individual">Individual Projects</ulink>, which contains the jars for the individual projects that make up the JBoss Microcontainer, and <ulink url="http://www.jboss.org/jbossmc/downloads/framework">Frameworks</ulink>, which give you usable distributions containing all the dependencies. The two frameworks shipped are the <ulink url="http://www.jboss.org/jbossmc/downloads/framework/jboss-kernel">JBoss Kernel</ulink> and <ulink url="http://www.jboss.org/jbossmc/downloads/framework/jboss-deployers">JBoss Virtual Deployment Framework</ulink>. The JBoss Kernel distribution contains the core framework, which is discussed in Parts I, II and III. The JBoss Virtual Deployment Framework contains the JBoss Kernel !
 as well as advanced classloading capabilities and deployer functionality, as discussed in Part IV.</para>
+      <para>JBoss Microcontainer 2.0.0 is also available via Maven2. This means that you need to install and configure Maven before you can begin development. Once this is done then you can create a maven project that depends on the JBoss Microcontainer JARs in order to download and install them into your local maven repository. You can then create an assembly for your final application in order to package the relevant JARs into a distributable format.</para>
+      <para>The examples created for this User Guide use Maven2 for their configuration to achieve exactly this so it is highly recommended that you <ulink url="http://labs.jboss.com/file-access/default/members/jbossmc/downloads/userGuide-examples-13112007.zip">download</ulink> these first and take a look at how they work.</para>
       <note>
-        <para>To build and run the examples you first need to install and configure Maven 2.0.7 available from <ulink url="http://maven.apache.org/">http://maven.apache.org/</ulink></para>
-        <para>Installation is performed by downloading and unzipping the  maven-2.0.7-bin.zip file to a convenient location on your local disk. Configuration  consists of adding $MAVEN_HOME/bin to your path and adding the following profile to your ~/.m2/settings.xml file:</para>
+        <para>To build and run the examples you first need to install and configure Maven 2.0.9 available from <ulink url="http://maven.apache.org/">http://maven.apache.org/</ulink></para>
+        <para>Installation is performed by downloading and unzipping the  maven-2.0.9-bin.zip file to a convenient location on your local disk. Configuration  consists of adding $MAVEN_HOME/bin to your path and adding the following profile to your ~/.m2/settings.xml file:</para>
         <programlisting role="XML">&lt;settings&gt;
   &lt;profiles&gt;
     &lt;profile&gt;
@@ -259,8 +260,10 @@
      &lt;property name=&quot;salaryStrategy&quot;&gt;&lt;inject bean=&quot;AgeBasedSalary&quot;/&gt;&lt;/property&gt;
    &lt;/bean&gt;
 
-   &lt;bean name=&quot;AgeBasedSalary&quot; class=&quot;org.jboss.example.service.util.AgeBasedSalaryStrategy&quot;&gt;
-     <emphasis>&lt;property name=&quot;minSalary&quot;&gt;1000&lt;/property&gt; &lt;property name=&quot;maxSalary&quot;&gt;80000&lt;/property&gt;</emphasis>
+   &lt;bean name=&quot;AgeBasedSalary&quot; 
+         class=&quot;org.jboss.example.service.util.AgeBasedSalaryStrategy&quot;&gt;
+     <emphasis>&lt;property name=&quot;minSalary&quot;&gt;1000&lt;/property&gt;
+     &lt;property name=&quot;maxSalary&quot;&gt;80000&lt;/property&gt;</emphasis>
    &lt;/bean&gt;
        
 &lt;/deployment&gt;</programlisting>
@@ -457,13 +460,14 @@
         &lt;property name=&quot;salaryStrategy&quot;&gt;&lt;inject bean=&quot;AgeBasedSalary&quot;/&gt;&lt;/property&gt; --&gt;
     &lt;/bean&gt;
 
-    &lt;!-- &lt;bean name=&quot;AgeBasedSalary&quot; class=&quot;org.jboss.example.service.util.AgeBasedSalaryStrategy&quot;&gt;
+    &lt;!-- &lt;bean name=&quot;AgeBasedSalary&quot; 
+          class=&quot;org.jboss.example.service.util.AgeBasedSalaryStrategy&quot;&gt;
         &lt;property name=&quot;minSalary&quot;&gt;1000&lt;/property&gt;
         &lt;property name=&quot;maxSalary&quot;&gt;80000&lt;/property&gt;
     &lt;/bean&gt;
 
     &lt;bean name=&quot;LocationBasedSalary&quot;
-class=&quot;org.jboss.example.service.util.LocationBasedSalaryStrategy&quot;&gt;
+          class=&quot;org.jboss.example.service.util.LocationBasedSalaryStrategy&quot;&gt;
         &lt;property name=&quot;minSalary&quot;&gt;2000&lt;/property&gt;
         &lt;property name=&quot;maxSalary&quot;&gt;90000&lt;/property&gt;
     &lt;/bean&gt; --&gt;
@@ -763,16 +767,21 @@
                              factoryMethod=&quot;instance&quot;/&gt;
     &lt;/bean&gt;
 
-    &lt;aop:aspect xmlns:aop=&quot;urn:jboss:aop-beans:1.0&quot;
-                       name=&quot;AuditAspect&quot; class=&quot;org.jboss.example.aspect.AuditAspect&quot;
-                       method=&quot;audit&quot; pointcut=&quot;execution(public org.jboss.example.service.HRManager-&gt;new(..)) OR                                        execution(public * org.jboss.example.service.HRManager-&gt;*(..))&quot;&gt;
-    &lt;/aop:aspect&gt;
+   &lt;aop:aspect xmlns:aop="urn:jboss:aop-beans:1.0"
+               name="AuditAspect" class="org.jboss.example.aspect.AuditAspect"/&gt;
+   
+   &lt;aop:bind xmlns:aop="urn:jboss:aop-beans:1.0"
+               method="audit" pointcut="execution(public org.jboss.example.service.HRManager->new(..)) OR
+                                        execution(public * org.jboss.example.service.HRManager->*(..))"&gt;
+      &lt;aop:advice name="audit" aspect="AuditAspect"/&gt;
+   &lt;/aop:bind&gt;
 
     ...
 
 &lt;/deployment&gt;</programlisting>
         <para>Before we can apply our aspect to any classes we need to create an instance of org.jboss.aop.AspectManager using a &lt;bean&gt; element. We use a factory method instead of calling a conventional constructor as we only want one instance of the AspectManager in the JVM at runtime i.e. it is a singleton.</para>
-        <para>Next we create an instance of our aspect called AuditAspect using the &lt;aop:aspect&gt; element. This looks much like the &lt;bean&gt; element as it has <code>name</code> and <code>class</code> attributes that you can use in the same way.  However it also has <code>method</code> and <code>pointcut</code> attributes that you can use to apply or &apos;bind&apos;  an advice within the aspect to constructors and methods within other classes. We use these attributes to bind the audit advice to all public constructors and methods within the HRManager class. We only need to specify one method called audit as we have overloaded this method within our AuditAspect class with different parameters. JBoss AOP knows at runtime which one to select based on whether a constructor or method invocation is being made.</para>
+        <para>Next we declare an aspect called AuditAspect using the &lt;aop:aspect&gt; element. This looks much like the &lt;bean&gt; element as it has <code>name</code> and <code>class</code> attributes that you can use in the same way.  However, behind the scenes due to the <code>urn:jboss:aop-beans:1.0</code> namespace this resolves to some other beans which install the aspect into the JBoss Microcontainer and into the JBoss AOP AspectManager.</para>
+        <para>Next we declare a binding called AuditAspect using the &lt;aop:bind&gt; element. Again, this resolves to some other beans which install the binding into the JBoss Microcontainer and into the JBoss AOP AspectManager. The <code>pointcut</code> attribute says this binding should apply to all public constructors and all public methods of the <code>HRManager</code> class, and the nested &lt;aop:advice&gt; element specifies that when any of these are called we should invoke the <code>audit</code> advice method of the aspect called <code>AuditAspect</code>. We only need to specify one method called audit as we have overloaded this method within our AuditAspect class with different parameters. JBoss AOP knows at runtime which one to select based on whether a constructor or method invocation is being made.</para>
         <para>This additional configuration is all we need to apply the audit aspect at runtime and add auditing behaviour to the Human Resources service. You can test this out for yourself by running the client using the <code>run.sh</code> script. A <code>log</code> directory will be created on startup alongside the <code>lib</code> directory as the AuditAspect bean is created by the microcontainer. Each deployment of the Human Resources service will then cause a new log file to appear within the <code>log</code> directory containing a record of any calls made from the client to the service:</para>
         <programlisting>log/auditLog-28112007-163902
    /auditLog-28112007-164055




More information about the jboss-cvs-commits mailing list