[jboss-cvs] JBossAS SVN: r101621 - in projects/snowdrop/examples/trunk/sportsclub: docs/guide/en-US and 7 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Feb 28 16:45:38 EST 2010


Author: marius.bogoevici
Date: 2010-02-28 16:45:38 -0500 (Sun, 28 Feb 2010)
New Revision: 101621

Removed:
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/java/org/jboss/snowdrop/samples/sportsclub/infrastructure/
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-staticwebcontent/sportsclub-staticwebcontent.iml
Modified:
   projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml
   projects/snowdrop/examples/trunk/sportsclub/pom.xml
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-ear/pom.xml
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-ejb/pom.xml
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml
   projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/pom.xml
Log:
Organize dependencies. Use Snowdrop 1.0.1-CR1

Modified: projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/docs/guide/en-US/Chapter.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -1,25 +1,76 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
 <!ENTITY % BOOK_ENTITIES SYSTEM "guide.ent">
 %BOOK_ENTITIES;
 ]>
 <chapter id="chap-guide-Test_Chapter">
   <title>Introduction</title>
-  <para>
-  This chapter describes the purpose of the example, as well as the general structure of the documentation.</para>
+
+  <para>This chapter describes the purpose of the example, as well as the
+  general structure of the documentation.</para>
+
   <section>
     <title>Prerequisites</title>
+
     <para>Running the example requires the following setup:</para>
+
     <itemizedlist>
       <listitem>
         <para>Java 6 JDK</para>
       </listitem>
+
       <listitem>
-        <para>JBoss AS 5.1.0 GA or higher, </para>
+        <para>JBoss AS 5.1.0 GA or JBoss EAP 5 or higher</para>
       </listitem>
+
       <listitem>
         <para>Maven 2.0.8 or higher</para>
       </listitem>
     </itemizedlist>
   </section>
+
+  <section>
+    <title>How to run the example</title>
+
+    <para>Running the appliction consists of the following steps:<itemizedlist>
+        <listitem>
+          <para>Building the application</para>
+        </listitem>
+
+        <listitem>
+          <para>Initializing the database</para>
+        </listitem>
+
+        <listitem>
+          <para>Preparing JBoss </para>
+        </listitem>
+
+        <listitem>
+          <para>Deploying the application</para>
+        </listitem>
+      </itemizedlist></para>
+
+    <simplesect>
+      <title>Building the application</title>
+
+      <para>The Sportsclub example uses maven, so it can be built by simply
+      running:</para>
+
+      <informalexample>
+        <para><programlisting>mvn clean package</programlisting>This will
+        produce two EAR files, both named sportsclub.ear, located under
+        sportsclub-ear/target and sportsclub-jpa-ear/target. They have the
+        same functionality, but the underlying implementation of the
+        persistence layer is different (one is using Hibernate, and another
+        one uses JPA).</para>
+      </informalexample>
+    </simplesect>
+
+    <simplesect>
+      <title>Initializing the database</title>
+
+      <para>The database should be initialized by </para>
+    </simplesect>
+  </section>
 </chapter>

Modified: projects/snowdrop/examples/trunk/sportsclub/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/pom.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/pom.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -20,12 +20,19 @@
         <module>sportsclub-invoicing-ejb</module>
         <module>sportsclub-invoicing-webmvc</module>
         <module>sportsclub-jpa-ear</module>
+        <module>sportsclub-staticwebcontent</module>
         <module>assembly</module>
-        <module>sportsclub-staticwebcontent</module>
     </modules>
     
     <packaging>pom</packaging>
 
+
+    <properties>
+        <spring.version>2.5.6.SEC01</spring.version>
+        <snowdrop.version>1.0.1-CR1</snowdrop.version>
+        <commons-logging.version>1.1.1</commons-logging.version>
+    </properties>
+
     <dependencyManagement>
         <dependencies>
 
@@ -43,6 +50,22 @@
             </dependency>
 
             <dependency>
+                <groupId>org.jboss.snowdrop</groupId>
+                <artifactId>snowdrop-deployers</artifactId>
+                <version>${snowdrop.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.snowdrop</groupId>
+                <artifactId>snowdrop-vfs</artifactId>
+                <version>${snowdrop.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.jboss.snowdrop</groupId>
+                <artifactId>snowdrop-transaction</artifactId>
+                <version>${snowdrop.version}</version>
+            </dependency>
+
+            <dependency>
                 <groupId>org.jboss.javaee</groupId>
                 <artifactId>jboss-ejb-api</artifactId>
                 <version>3.0.0.GA</version>
@@ -80,33 +103,33 @@
             <dependency>
                 <groupId>org.springframework</groupId>
                 <artifactId>spring</artifactId>
-                <version>2.5.6.SEC01</version>
+                <version>${spring.version}</version>
             </dependency>
 
 
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-web</artifactId>
-               <version>2.5.6.SEC01</version>
+               <version>${spring.version}</version>
            </dependency>
 
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
-               <version>2.5.6.SEC01</version>
+               <version>${spring.version}</version>
            </dependency>
 
             <dependency>
                 <groupId>org.springframework</groupId>
                 <artifactId>spring-test</artifactId>
-                <version>2.5.6.SEC01</version>
+                <version>${spring.version}</version>
                 <scope>test</scope>
             </dependency>
 
             <dependency>
                 <groupId>commons-logging</groupId>
                 <artifactId>commons-logging</artifactId>
-                <version>1.1.1</version>
+                <version>${commons-logging.version}</version>
             </dependency>
 
             <dependency>

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-ear/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-ear/pom.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-ear/pom.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -76,6 +76,10 @@
             <artifactId>aspectjweaver</artifactId>
             <version>1.6.3</version>
         </dependency>
+        <dependency>
+            <groupId>org.jboss.snowdrop</groupId>
+            <artifactId>snowdrop-transaction</artifactId>
+        </dependency>
     </dependencies>
 
     <build>

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-ejb/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-ejb/pom.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-ejb/pom.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -38,7 +38,6 @@
         <dependency>
             <groupId>org.jboss.snowdrop</groupId>
             <artifactId>snowdrop-deployers</artifactId>
-            <version>1.0.0.GA</version>
         </dependency>
         <dependency>
             <groupId>org.springframework</groupId>

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/pom.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -65,9 +65,13 @@
         <dependency>
             <groupId>org.jboss.snowdrop</groupId>
             <artifactId>snowdrop-vfs</artifactId>
-            <version>1.0.0.GA</version>
             <scope>provided</scope>
         </dependency>
+         <dependency>
+            <groupId>org.jboss.snowdrop</groupId>
+            <artifactId>snowdrop-transaction</artifactId>
+            <scope>provided</scope>
+        </dependency>
         <dependency>
             <groupId>org.jboss.javaee</groupId>
             <artifactId>jboss-ejb-api</artifactId>

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-invoicing-webmvc/src/main/webapp/WEB-INF/spring-business-context.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -28,7 +28,6 @@
                <property name="clientId" value="remote"/>
                <property name="subscriptionName" value="jca-payment-processor"/>
                <property name="maxSession" value="1"/>
-               <property name="maxMessages" value="1"/>
                <property name="useDLQ" value="false"/>
            </bean>
        </property>
@@ -43,7 +42,9 @@
            </bean>
        </property>
        <property name="transactionManager">
-          <bean class="org.jboss.snowdrop.samples.sportsclub.infrastructure.NoopTransactionManager"/>
+          <bean class="org.jboss.spring.transactions.ExistingTransactionAwareTransactionFactory">
+              <property name="wrappedJtaTransactionManager" ref="transactionManager"/>
+          </bean>
        </property>
     </bean>
 

Modified: projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/pom.xml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/pom.xml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-jpa-ear/pom.xml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -76,6 +76,10 @@
             <artifactId>aspectjweaver</artifactId>
             <version>1.6.3</version>
         </dependency>
+        <dependency>
+            <groupId>org.jboss.snowdrop</groupId>
+            <artifactId>snowdrop-transaction</artifactId>
+        </dependency>
     </dependencies>
     <build>
         <plugins>

Deleted: projects/snowdrop/examples/trunk/sportsclub/sportsclub-staticwebcontent/sportsclub-staticwebcontent.iml
===================================================================
--- projects/snowdrop/examples/trunk/sportsclub/sportsclub-staticwebcontent/sportsclub-staticwebcontent.iml	2010-02-28 21:07:09 UTC (rev 101620)
+++ projects/snowdrop/examples/trunk/sportsclub/sportsclub-staticwebcontent/sportsclub-staticwebcontent.iml	2010-02-28 21:45:38 UTC (rev 101621)
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module relativePaths="true" MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
-  <component name="FacetManager">
-    <facet type="web" name="Web">
-      <configuration>
-        <descriptors>
-          <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/src/main/webapp/WEB-INF/web.xml" optional="false" version="2.5" />
-        </descriptors>
-        <webroots>
-          <root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
-        </webroots>
-        <building>
-          <setting name="EXPLODED_URL" value="file://$MODULE_DIR$/target/sportsclub-staticwebcontent-1.0-SNAPSHOT" />
-          <setting name="EXPLODED_ENABLED" value="false" />
-          <setting name="JAR_URL" value="file://$MODULE_DIR$/target/sportsclub-staticwebcontent-1.0-SNAPSHOT.war" />
-          <setting name="JAR_ENABLED" value="true" />
-          <setting name="EXCLUDE_EXPLODED_DIRECTORY" value="true" />
-        </building>
-        <packaging>
-          <containerElement type="module" name="sportsclub-staticwebcontent">
-            <attribute name="method" value="1" />
-            <attribute name="URI" value="/WEB-INF/classes" />
-          </containerElement>
-        </packaging>
-      </configuration>
-    </facet>
-  </component>
-  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5" inherit-compiler-output="false">
-    <output url="file://$MODULE_DIR$/target/classes" />
-    <output-test url="file://$MODULE_DIR$/target/test-classes" />
-    <content url="file://$MODULE_DIR$">
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />
-      <excludeFolder url="file://$MODULE_DIR$/target" />
-    </content>
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="library" name="Maven: org.hibernate:hibernate-annotations:3.4.0.GA" level="project" />
-    <orderEntry type="library" name="Maven: org.hibernate:ejb3-persistence:1.0.2.GA" level="project" />
-    <orderEntry type="library" name="Maven: org.hibernate:hibernate-commons-annotations:3.1.0.GA" level="project" />
-    <orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.5.8" level="project" />
-    <orderEntry type="library" name="Maven: org.hibernate:hibernate-core:3.3.1.GA" level="project" />
-    <orderEntry type="library" name="Maven: antlr:antlr:2.7.6" level="project" />
-    <orderEntry type="library" name="Maven: commons-collections:commons-collections:3.1" level="project" />
-    <orderEntry type="library" name="Maven: dom4j:dom4j:1.6.1" level="project" />
-    <orderEntry type="library" name="Maven: xml-apis:xml-apis:1.0.b2" level="project" />
-    <orderEntry type="library" name="Maven: javax.transaction:jta:1.1" level="project" />
-    <orderEntry type="library" name="Maven: org.slf4j:slf4j-simple:1.5.8" level="project" />
-    <orderEntry type="library" name="Maven: javassist:javassist:3.11.0.GA" level="project" />
-  </component>
-</module>
-




More information about the jboss-cvs-commits mailing list