[seam-commits] Seam SVN: r9528 - in trunk/examples: blog and 37 other directories.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Fri Nov 7 19:59:54 EST 2008
Author: dan.j.allen
Date: 2008-11-07 19:59:54 -0500 (Fri, 07 Nov 2008)
New Revision: 9528
Added:
trunk/examples/dvdstore/resources/jboss-seam-dvdstore-ds.xml
trunk/examples/nestedbooking/resources/jboss-seam-nestedbooking-ds.xml
trunk/examples/spring/resources/WEB-INF/jboss-web.xml
Removed:
trunk/examples/dvdstore/resources/jboss-seam-dvd-ds.xml
trunk/examples/nestedbooking/resources/jboss-seam-nested-booking-ds.xml
Modified:
trunk/examples/blog/readme.txt
trunk/examples/booking/readme.txt
trunk/examples/contactlist/readme.txt
trunk/examples/contactlist/resources/import.sql
trunk/examples/drools/readme.txt
trunk/examples/dvdstore/build.xml
trunk/examples/dvdstore/pom.xml
trunk/examples/dvdstore/readme.txt
trunk/examples/dvdstore/resources/META-INF/application.xml
trunk/examples/dvdstore/resources/META-INF/persistence.xml
trunk/examples/dvdstore/resources/WEB-INF/components.xml
trunk/examples/dvdstore/resources/hibernate.cfg.xml
trunk/examples/excel/readme.txt
trunk/examples/groovybooking/build.xml
trunk/examples/groovybooking/readme.txt
trunk/examples/groovybooking/resources/WEB-INF/jboss-web.xml
trunk/examples/hibernate/readme.txt
trunk/examples/hibernate/resources-jboss/WEB-INF/jboss-web.xml
trunk/examples/itext/readme.txt
trunk/examples/jpa/readme.txt
trunk/examples/jpa/resources-jboss/WEB-INF/jboss-web.xml
trunk/examples/mail/readme.txt
trunk/examples/messages/readme.txt
trunk/examples/nestedbooking/build.xml
trunk/examples/nestedbooking/resources/META-INF/application.xml
trunk/examples/nestedbooking/resources/META-INF/jboss-app.xml
trunk/examples/numberguess/readme.txt
trunk/examples/quartz/readme.txt
trunk/examples/readme.txt
trunk/examples/registration/readme.txt
trunk/examples/remoting/chatroom/readme.txt
trunk/examples/remoting/helloworld/readme.txt
trunk/examples/remoting/progressbar/readme.txt
trunk/examples/rss/readme.txt
trunk/examples/seambay/readme.txt
trunk/examples/seamdiscs/readme.txt
trunk/examples/seampay/readme.txt
trunk/examples/seamspace/readme.txt
trunk/examples/spring/readme.txt
trunk/examples/todo/readme.txt
trunk/examples/ui/readme.txt
trunk/examples/wicket/readme.txt
Log:
JBSEAM-3553
Modified: trunk/examples/blog/readme.txt
===================================================================
--- trunk/examples/blog/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/blog/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -4,6 +4,6 @@
Transaction and persistence context management is handled by the
EJB container.
-This example can also run in Tomcat with JBoss Embedded.
+This example runs on JBoss AS as an EAR or Tomcat with JBoss Embedded as a WAR.
-example.name=blog
\ No newline at end of file
+example.name=blog
Modified: trunk/examples/booking/readme.txt
===================================================================
--- trunk/examples/booking/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/booking/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -4,6 +4,6 @@
Transaction and persistence context management is handled by the
EJB container.
-This example can also run in Tomcat with JBoss Embedded.
+This example runs on JBoss AS as an EAR or Tomcat with JBoss Embedded as a WAR.
-example.name=booking
\ No newline at end of file
+example.name=booking
Modified: trunk/examples/contactlist/readme.txt
===================================================================
--- trunk/examples/contactlist/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/contactlist/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam Contact List Example
=========================
-This example demonstrates the Seam CRUD framework. It runs on both JBoss AS and Tomcat.
-example.name=contactlist
\ No newline at end of file
+This example demonstrates the Seam CRUD framework. It runs on JBoss AS as an
+EAR and Tomcat with JBoss Embedded as a WAR.
+
+example.name=contactlist
Modified: trunk/examples/contactlist/resources/import.sql
===================================================================
--- trunk/examples/contactlist/resources/import.sql 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/contactlist/resources/import.sql 2008-11-08 00:59:54 UTC (rev 9528)
@@ -9,3 +9,4 @@
insert into Contact ( firstName, lastName, cellPhone, address, city, state, zip, country, version ) values ( 'Emmanuel', 'Bernard', null, null, 'Atlanta', 'GA', null, 'USA', 1 )
insert into Contact ( firstName, lastName, cellPhone, address, city, state, zip, country, version ) values ( 'Michael', 'Youngstrom', null, null, 'Salt Lake City', 'UT', null, 'USA', 1 )
insert into Contact ( firstName, lastName, cellPhone, address, city, state, zip, country, version ) values ( 'Jacob', 'Hookom', null, null, 'Minneapolis', 'MN', null, 'USA', 1 )
+insert into Contact ( firstName, lastName, cellPhone, address, city, state, zip, country, version ) values ( 'Dan', 'Allen', null, null, 'Laurel', 'MD', 20724, 'USA', 1 )
Modified: trunk/examples/drools/readme.txt
===================================================================
--- trunk/examples/drools/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/drools/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,7 @@
Seam Drools Example
===================
+
This is a simple example for the Seam tutorial, demonstrating the
-use of jBPM with Drools. It runs on JBoss AS
+use of jBPM with Drools. It runs on JBoss AS as an EAR.
-example.name=drools
\ No newline at end of file
+example.name=drools
Modified: trunk/examples/dvdstore/build.xml
===================================================================
--- trunk/examples/dvdstore/build.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/build.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -4,7 +4,7 @@
<!-- Naming -->
<property name="Name" value="Seam DVD Store Example" />
- <property name="example.name" value="jboss-seam-dvd" />
+ <property name="example.name" value="jboss-seam-dvdstore" />
<!-- Libraries -->
<property name="seam.ui.lib" value="yes" />
@@ -15,7 +15,7 @@
<property name="urlrewrite.lib" value="yes"/>
<!-- Datasource -->
- <property name="example.ds" value="jboss-seam-dvd-ds.xml" />
+ <property name="example.ds" value="jboss-seam-dvdstore-ds.xml" />
<import file="../build.xml" />
Modified: trunk/examples/dvdstore/pom.xml
===================================================================
--- trunk/examples/dvdstore/pom.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/pom.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.examples</groupId>
- <artifactId>jboss-seam-dvd</artifactId>
+ <artifactId>jboss-seam-dvdstore</artifactId>
<parent>
<groupId>org.jboss.seam</groupId>
<artifactId>parent</artifactId>
@@ -12,4 +12,4 @@
</parent>
<packaging>ear</packaging>
-</project>
\ No newline at end of file
+</project>
Modified: trunk/examples/dvdstore/readme.txt
===================================================================
--- trunk/examples/dvdstore/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,7 +1,8 @@
Seam DVD Store Example
======================
-This example demonstrates the use of Seam with jBPM pageflow and
-business process management. It runs on JBoss AS and Tomcat
-with embedded JBoss.
-example.name=dvd
+This example demonstrates the use of Seam with jBPM pageflow and business
+process management. It runs on JBoss AS as an EAR and Tomcat with Embedded
+JBoss as a WAR.
+
+example.name=dvdstore
Modified: trunk/examples/dvdstore/resources/META-INF/application.xml
===================================================================
--- trunk/examples/dvdstore/resources/META-INF/application.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/resources/META-INF/application.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -7,13 +7,13 @@
<display-name>DVD Store</display-name>
<module>
- <ejb>jboss-seam-dvd.jar</ejb>
+ <ejb>jboss-seam-dvdstore.jar</ejb>
</module>
<module>
<web>
- <web-uri>jboss-seam-dvd.war</web-uri>
- <context-root>/seam-dvd</context-root>
+ <web-uri>jboss-seam-dvdstore.war</web-uri>
+ <context-root>/seam-dvdstore</context-root>
</web>
</module>
Modified: trunk/examples/dvdstore/resources/META-INF/persistence.xml
===================================================================
--- trunk/examples/dvdstore/resources/META-INF/persistence.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/resources/META-INF/persistence.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -3,9 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
- <persistence-unit name="dvdDatabase">
+ <persistence-unit name="dvdstoreDatabase">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
- <jta-data-source>java:/dvdDatasource</jta-data-source>
+ <jta-data-source>java:/dvdstoreDatasource</jta-data-source>
<properties>
<property name="hibernate.hbm2ddl.auto" value="create-drop"/>
<property name="hibernate.cache.use_query_cache" value="true"/>
@@ -25,7 +25,7 @@
<property name="hibernate.ejb.event.post-delete" value="org.hibernate.search.event.FullTextIndexEventListener"/>
<property name="jboss.entity.manager.factory.jndi.name"
- value="java:/dvdEntityManagerFactory" />
+ value="java:/dvdstoreEntityManagerFactory" />
</properties>
</persistence-unit>
</persistence>
Modified: trunk/examples/dvdstore/resources/WEB-INF/components.xml
===================================================================
--- trunk/examples/dvdstore/resources/WEB-INF/components.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/resources/WEB-INF/components.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -29,7 +29,7 @@
<persistence:managed-persistence-context name="entityManager"
auto-create="true"
- persistence-unit-jndi-name="java:/dvdEntityManagerFactory" />
+ persistence-unit-jndi-name="java:/dvdstoreEntityManagerFactory" />
<factory name="order"
value="#{orderHome.instance}"
Modified: trunk/examples/dvdstore/resources/hibernate.cfg.xml
===================================================================
--- trunk/examples/dvdstore/resources/hibernate.cfg.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/resources/hibernate.cfg.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -8,7 +8,7 @@
<session-factory>
<property name="show_sql">false</property>
- <property name="connection.datasource">java:/dvdDatasource</property>
+ <property name="connection.datasource">java:/dvdstoreDatasource</property>
<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
<property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
<property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
Deleted: trunk/examples/dvdstore/resources/jboss-seam-dvd-ds.xml
===================================================================
--- trunk/examples/dvdstore/resources/jboss-seam-dvd-ds.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/dvdstore/resources/jboss-seam-dvd-ds.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,41 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE datasources
- PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
- "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
-
-<datasources>
- <local-tx-datasource>
- <jndi-name>dvdDatasource</jndi-name>
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}dvd</connection-url>
- <!-- <connection-url>jdbc:hsqldb:.</connection-url> -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <user-name>sa</user-name>
- <password></password>
- </local-tx-datasource>
-
- <mbean code="org.jboss.jdbc.HypersonicDatabase"
- name="jboss:service=Hypersonic,database=dvd">
- <attribute name="Database">dvd</attribute>
- <attribute name="InProcessMode">true</attribute>
- </mbean>
-
- <!-- -->
-<!--
- <local-tx-datasource>
- <jndi-name>dvdDatasource</jndi-name>
- <connection-url>jdbc:mysql://localhost:3306/dvdstore</connection-url>
- <driver-class>com.mysql.jdbc.Driver</driver-class>
- <user-name>gavin</user-name>
- <password></password>
- <exception-sorter-class-name>
- org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
- </exception-sorter-class-name>
-
- <metadata>
- <type-mapping>mySQL</type-mapping>
- </metadata>
- </local-tx-datasource>
--->
-</datasources>
-
Copied: trunk/examples/dvdstore/resources/jboss-seam-dvdstore-ds.xml (from rev 9526, trunk/examples/dvdstore/resources/jboss-seam-dvd-ds.xml)
===================================================================
--- trunk/examples/dvdstore/resources/jboss-seam-dvdstore-ds.xml (rev 0)
+++ trunk/examples/dvdstore/resources/jboss-seam-dvdstore-ds.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE datasources
+ PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN"
+ "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd">
+
+<datasources>
+ <local-tx-datasource>
+ <jndi-name>dvdstoreDatasource</jndi-name>
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}dvdstore</connection-url>
+ <!-- <connection-url>jdbc:hsqldb:.</connection-url> -->
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <user-name>sa</user-name>
+ <password></password>
+ </local-tx-datasource>
+
+ <mbean code="org.jboss.jdbc.HypersonicDatabase"
+ name="jboss:service=Hypersonic,database=dvdstore">
+ <attribute name="Database">dvdstore</attribute>
+ <attribute name="InProcessMode">true</attribute>
+ </mbean>
+
+ <!-- -->
+<!--
+ <local-tx-datasource>
+ <jndi-name>dvdstoreDatasource</jndi-name>
+ <connection-url>jdbc:mysql://localhost:3306/dvdstore</connection-url>
+ <driver-class>com.mysql.jdbc.Driver</driver-class>
+ <user-name>gavin</user-name>
+ <password></password>
+ <exception-sorter-class-name>
+ org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter
+ </exception-sorter-class-name>
+
+ <metadata>
+ <type-mapping>mySQL</type-mapping>
+ </metadata>
+ </local-tx-datasource>
+-->
+</datasources>
+
Property changes on: trunk/examples/dvdstore/resources/jboss-seam-dvdstore-ds.xml
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:mergeinfo
+
Name: svn:eol-style
+ native
Modified: trunk/examples/excel/readme.txt
===================================================================
--- trunk/examples/excel/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/excel/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam Excel Example
==================
-This example demonstrates the Seam Excel functionality. It runs on both JBoss AS and Tomcat.
-example.name=excel
\ No newline at end of file
+This example demonstrates the Seam Excel functionality. It runs on JBoss AS as
+an EAR and Tomcat with Embedded JBoss as a WAR.
+
+example.name=excel
Modified: trunk/examples/groovybooking/build.xml
===================================================================
--- trunk/examples/groovybooking/build.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/groovybooking/build.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -24,6 +24,18 @@
<property name="example.ds" value="groovybooking-${profile}-ds.xml" />
<import file="../build.xml" />
+
+ <target name="explode">
+ <fail>Please use the target jbosswar.explode to deploy this application.</fail>
+ </target>
+
+ <target name="restart">
+ <fail>Please use the target jbosswar.restart to restart this application.</fail>
+ </target>
+
+ <target name="unexplode">
+ <fail>Please use the target jbosswar.unexplode to undeploy this application.</fail>
+ </target>
<property name="classes.model.dir" value="${war.dir}/WEB-INF/classes" />
<property name="classes.action.dir" value="${war.dir}/WEB-INF/dev" />
Modified: trunk/examples/groovybooking/readme.txt
===================================================================
--- trunk/examples/groovybooking/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/groovybooking/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -2,9 +2,12 @@
==========================
This is the Hotel Booking example implemented in Groovy Beans and Hibernate JPA.
-It runs on JBoss AS.
+This application runs on JBoss AS, but is deployed as a WAR rather than an EAR.
+Thus, you prefix all the typical targets (explode, restart, unexplode) with
+"jbosswar." (e.g., jbosswar.explode, jbosswar.restart, jbosswar.unexplode).
-When editing Groovy files from action, a simple ant jbosswar.explode is enough
-When editing Groovy files from model, ant explode jbosswar.restart is necessary
+When editing Groovy files from the src/action directory, you can run ant
+"jbosswar.explode" to see your changes take effect. When editing Groovy files
+from src/model, you need to run "ant jbosswar.explode jbosswar.restart"
-Access it at http://localhost:8080/jboss-seam-groovy
\ No newline at end of file
+Access the application at http://localhost:8080/seam-groovybooking
Modified: trunk/examples/groovybooking/resources/WEB-INF/jboss-web.xml
===================================================================
--- trunk/examples/groovybooking/resources/WEB-INF/jboss-web.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/groovybooking/resources/WEB-INF/jboss-web.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,8 +1,9 @@
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
- seam.jboss.org:loader=groovybooking
+ seam.jboss.org:loader=seam-groovybooking
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
+ <context-root>/seam-groovybooking</context-root>
</jboss-web>
Modified: trunk/examples/hibernate/readme.txt
===================================================================
--- trunk/examples/hibernate/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/hibernate/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -9,14 +9,15 @@
* Install JBoss AS with the default profile
* ant jboss
* Start JBoss AS
- * Access the app at http://localhost:8080/jboss-seam-hibernate/
+ * Access the app at http://localhost:8080/seam-hibernate/
+ * ant jboss.undeploy
JBoss AS 4.0.5.GA:
* Install JBoss AS with the default profile (with or without EJB3)
* ant jboss405
* Deploy dist-jboss/jboss-seam-hibernate.war
* Start JBoss AS
- * Access the app at http://localhost:8080/jboss-seam-hibernate/
+ * Access the app at http://localhost:8080/seam-hibernate/
WebLogic 9.2:
* Install WebLogic 9.2
@@ -68,3 +69,4 @@
WEB/classes/GlassfishDerbyDialect.class is a special hack to get around
a Derby bug in Glassfish TM. You must use it as your Hibernate dialect
if you are using Derby with Glassfish.
+
Modified: trunk/examples/hibernate/resources-jboss/WEB-INF/jboss-web.xml
===================================================================
--- trunk/examples/hibernate/resources-jboss/WEB-INF/jboss-web.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/hibernate/resources-jboss/WEB-INF/jboss-web.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,8 +1,9 @@
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
- seam.jboss.org:loader=jboss-seam-hibernate
+ seam.jboss.org:loader=seam-hibernate
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
+ <context-root>/seam-hibernate</context-root>
</jboss-web>
Modified: trunk/examples/itext/readme.txt
===================================================================
--- trunk/examples/itext/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/itext/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam iText Example
==================
-This example demonstrates the Seam PDF functionality. It runs on both JBoss AS and Tomcat.
-example.name=itext
\ No newline at end of file
+This example demonstrates the Seam PDF functionality. It runs on JBoss AS as an
+EAR and Tomcat with Embedded JBoss as a WAR.
+
+example.name=itext
Modified: trunk/examples/jpa/readme.txt
===================================================================
--- trunk/examples/jpa/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/jpa/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -9,14 +9,15 @@
* Install JBoss AS 4.2.0 GA
* ant jboss
* Start JBoss AS
- * Access the app at http://localhost:8080/jboss-seam-jpa/
+ * Access the app at http://localhost:8080/seam-jpa/
+ * ant jboss.undeploy
JBoss AS 4.0.5 (with or without EJB3):
* Install JBoss AS 4.0.5 with the default J2EE profile
* ant jboss405
* Deploy dist-jboss405/jboss-seam-jpa.war
* Start JBoss AS
- * Access the app at http://localhost:8080/jboss-seam-jpa/
+ * Access the app at http://localhost:8080/seam-jpa/
WebLogic 9.2:
* Install WebLogic 9.2
Modified: trunk/examples/jpa/resources-jboss/WEB-INF/jboss-web.xml
===================================================================
--- trunk/examples/jpa/resources-jboss/WEB-INF/jboss-web.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/jpa/resources-jboss/WEB-INF/jboss-web.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,8 +1,9 @@
<jboss-web>
<class-loading java2ClassLoadingCompliance="false">
<loader-repository>
- seam.jboss.org:loader=jboss-seam-jpa
+ seam.jboss.org:loader=seam-jpa
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
</loader-repository>
</class-loading>
+ <context-root>/seam-jpa</context-root>
</jboss-web>
Modified: trunk/examples/mail/readme.txt
===================================================================
--- trunk/examples/mail/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/mail/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam Mail Example
==================
-This example demonstrates the Seam Mail functionality. It runs on JBoss AS.
-example.name=mail
\ No newline at end of file
+This example demonstrates the Seam Mail functionality. It runs on JBoss AS as
+an EAR.
+
+example.name=mail
Modified: trunk/examples/messages/readme.txt
===================================================================
--- trunk/examples/messages/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/messages/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam Message List Example
=========================
-This is a simple example of the use of @DataModel for the Seam tutorial.
-example.name=messages
\ No newline at end of file
+This is a simple example of the use of @DataModel for the Seam tutorial. It
+runs on JBoss AS as an EAR.
+
+example.name=messages
Modified: trunk/examples/nestedbooking/build.xml
===================================================================
--- trunk/examples/nestedbooking/build.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/nestedbooking/build.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -4,7 +4,7 @@
<!-- Naming -->
<property name="Name" value="Seam on JBoss Nested Booking Example"/>
- <property name="example.name" value="jboss-seam-nested-booking"/>
+ <property name="example.name" value="jboss-seam-nestedbooking"/>
<!-- Libraries to include -->
<property name="seam.ui.lib" value="yes"/>
@@ -13,7 +13,7 @@
<property name="richfaces.lib" value="yes"/>
<!-- Datasource -->
- <property name="example.ds" value="jboss-seam-nested-booking-ds.xml"/>
+ <property name="example.ds" value="jboss-seam-nestedbooking-ds.xml"/>
<import file="../build.xml"/>
</project>
Modified: trunk/examples/nestedbooking/resources/META-INF/application.xml
===================================================================
--- trunk/examples/nestedbooking/resources/META-INF/application.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/nestedbooking/resources/META-INF/application.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -8,13 +8,13 @@
<module>
<web>
- <web-uri>jboss-seam-nested-booking.war</web-uri>
- <context-root>/seam-nested-booking</context-root>
+ <web-uri>jboss-seam-nestedbooking.war</web-uri>
+ <context-root>/seam-nestedbooking</context-root>
</web>
</module>
<module>
- <ejb>jboss-seam-nested-booking.jar</ejb>
+ <ejb>jboss-seam-nestedbooking.jar</ejb>
</module>
<module>
Modified: trunk/examples/nestedbooking/resources/META-INF/jboss-app.xml
===================================================================
--- trunk/examples/nestedbooking/resources/META-INF/jboss-app.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/nestedbooking/resources/META-INF/jboss-app.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,5 @@
<jboss-app>
<loader-repository>
- seam.jboss.org:loader=seam-nested-booking
+ seam.jboss.org:loader=seam-nestedbooking
</loader-repository>
-</jboss-app>
\ No newline at end of file
+</jboss-app>
Deleted: trunk/examples/nestedbooking/resources/jboss-seam-nested-booking-ds.xml
===================================================================
--- trunk/examples/nestedbooking/resources/jboss-seam-nested-booking-ds.xml 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/nestedbooking/resources/jboss-seam-nested-booking-ds.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<datasources>
- <local-tx-datasource>
- <jndi-name>nestedBookingDatasource</jndi-name>
- <connection-url>jdbc:hsqldb:.</connection-url>
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <user-name>sa</user-name>
- <password></password>
- </local-tx-datasource>
-</datasources>
-
Copied: trunk/examples/nestedbooking/resources/jboss-seam-nestedbooking-ds.xml (from rev 9526, trunk/examples/nestedbooking/resources/jboss-seam-nested-booking-ds.xml)
===================================================================
--- trunk/examples/nestedbooking/resources/jboss-seam-nestedbooking-ds.xml (rev 0)
+++ trunk/examples/nestedbooking/resources/jboss-seam-nestedbooking-ds.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<datasources>
+ <local-tx-datasource>
+ <jndi-name>nestedBookingDatasource</jndi-name>
+ <connection-url>jdbc:hsqldb:.</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <user-name>sa</user-name>
+ <password></password>
+ </local-tx-datasource>
+</datasources>
+
Property changes on: trunk/examples/nestedbooking/resources/jboss-seam-nestedbooking-ds.xml
___________________________________________________________________
Name: svn:keywords
+ Author Date Id Revision
Name: svn:mergeinfo
+
Name: svn:eol-style
+ native
Modified: trunk/examples/numberguess/readme.txt
===================================================================
--- trunk/examples/numberguess/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/numberguess/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,8 @@
Seam Number Guess Example
=========================
-This is a simple example for the Seam tutorial, demonstrating the
-use of jBPM-based page flow. It runs on both JBoss AS and Tomcat.
-example.name=numberguess
\ No newline at end of file
+This is a simple example for the Seam tutorial, demonstrating the use of
+jBPM-based page flow. It runs on both JBoss AS as an EAR and Tomcat with
+Embedded JBoss as an EAR.
+
+example.name=numberguess
Modified: trunk/examples/quartz/readme.txt
===================================================================
--- trunk/examples/quartz/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/quartz/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam Quartz Example
==================
-This example demonstrates the Seam Quartz Timer functionality. It runs on JBoss AS.
-example.name=quartz
\ No newline at end of file
+This example demonstrates the Seam Quartz Timer functionality. It runs on JBoss
+AS as an EAR.
+
+example.name=quartz
Modified: trunk/examples/readme.txt
===================================================================
--- trunk/examples/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,92 +1,94 @@
Seam Example Applications
=========================
-This directory contains the Seam example applications, which have
-all been tested in the latest release of JBoss 4.2. Most examples have also been
-tested on Tomcat (running JDK 1.5), and some have been tested with other
-application servers.
+This directory contains the Seam example applications, which have all been
+tested on the latest release of JBoss 4.2. All but a few examples have been
+tested on Tomcat (running JDK 1.5), and some have been tested on other
+application servers. Consult the readme.txt file in each of the examples to
+see which additional servers the example supports.
+Below is a list of examples with a brief description. The name of the example,
+refered to later as ${example.name}, is equivalent to the name of the folder
+unless the folder name begins with seam, in which case the prefix "seam" is
+omitted (i.e. seamspace -> space).
blog/ The Seam blog example, showing how to write
- RESTful applications using Seam
+ RESTful applications using Seam.
-booking/ The Seam Booking demo application for EJB 3.0
+booking/ The Seam Booking demo application for EJB 3.0.
contactlist/ The Seam Contact List demo demonstrating use
- of the Seam application framework
+ of the Seam application framework.
drools/ A version of the number guessing example that
- uses Drools with jBPM
+ uses Drools with jBPM.
dvdstore/ The Seam DVD Store demo demonstrating jBPM
- support in Seam
+ support in Seam.
excel/ Demo of excel export support.
-groovybooking/ The Seam Booking demo ported to Groovy
+groovybooking/ The Seam Booking demo ported to Groovy.
-hibernate/ The Seam Booking demo ported to Hibernate3
+hibernate/ The Seam Booking demo ported to Hibernate3.
icefaces/ The Seam Booking demo with ICEfaces, instead of
- Ajax4JSF
+ Ajax4JSF.
-itext/ A demo of the Seam iText integration for generating pdfs
+itext/ A demo of the Seam iText integration for generating PDFs.
-jee5/booking The Seam Booking demo ported to the Java EE 5
- platforms
+jee5/booking The Seam Booking demo ported to the Java EE 5 platforms.
jee5/remoting The Seam remoting helloworld demo ported to the Java EE 5
- platforms
+ platforms.
jpa/ An example of the use of JPA (provided by Hibernate), runs
on many platforms, including non-EE 5 platforms (including
- plain Tomcat)
+ plain Tomcat).
mail/ The Seam mail example demonstrating use of
- facelets-based email templating
+ facelets-based email templating.
messages/ The Seam message list example demonstrating use
- of the @DataModel annotation
+ of the @DataModel annotation.
nestedbooking/ The booking example modified to show the use of nested
- conversations
+ conversations.
numberguess/ The Seam number guessing example, demonstrating
- jBPM pageflow
+ jBPM pageflow.
-quartz/ A port of the Seampay example to use the Quartz dispatcher
+quartz/ A port of the Seampay example to use the Quartz dispatcher.
-registration/ A trivial example for the tutorial
+registration/ A trivial example for the tutorial.
-remoting/chatroom/ The Seam Chat Room example, demostrating Seam
- Remoting
+remoting/chatroom/ The Seam Chat Room example, demostrating Seam remoting.
-remoting/gwt/ An example of using GWT with Seam remoting
+remoting/gwt/ An example of using GWT with Seam remoting.
-remoting/helloworld/ A trivial example using Ajax
+remoting/helloworld/ A trivial example using Ajax.
-remoting/progressbar/ An example of an Ajax progress bar
+remoting/progressbar/ An example of an Ajax progress bar.
-seambay/ An example of using Seam with Web Services
+seambay/ An example of using Seam with Web Services.
-seamdiscs/ Demonstrates Seam, Trinidad, Ajax4jsf and Richfaces
+seamdiscs/ Demonstrates Seam, Trinidad, Ajax4jsf and Richfaces.
seampay/ The Seam Payments demo demonstrating the use of
- asynchronous methods
+ asynchronous methods.
-seamspace/ The Seam Spaces demo demonstrating Seam
- Security
+seamspace/ The Seam Spaces demo demonstrating Seam security.
-spring/ Demonstrates Spring framework integration
+spring/ Demonstrates Spring framework integration.
todo/ The Seam todo list example demonstrating
- jBPM business process management
+ jBPM business process management.
-ui/ Demonstrates some Seam JSF controls
+ui/ Demonstrates some Seam JSF controls.
-wiki/ A fully featured wiki system based on Seam, please
- read wiki/README.txt for installation instructions
-
+wiki/ A fully featured wiki system based on Seam which
+ is used by seamframework.org. Please read
+ wiki/README.txt for installation instructions.
Deploying and Testing an Example Application
@@ -106,21 +108,38 @@
http://seamframework.org/Download
-3. Edit the "build.properties" file and change jboss.home to your
- JBoss AS directory (Seam uses the default profile)
+3. Open the "build.properties" file at the root of the Seam distribution in
+ your editor and change jboss.home to point to your JBoss AS directory
+ (the examples are deployed to the default profile)
4. (Optional) Build Seam by running "ant" the Seam root directory
+ Only required if you are working from an SVN checkout.
-5. Build and deploy the example by running "ant" in the Seam
- "examples/${example.name}" directory
+5. Build and deploy the example by running the following command from the Seam
+ "examples/${example.name}" directory:
+
+ ant explode
+
+ To undeploy the example, run:
+ ant unexplode
+
+ To restart the deployed application, run:
+
+ ant restart
+
6. Start JBoss AS by typing "./run.sh" (on Linux/Unix) or "run" (on Windows)
in the jboss-4.2.3.GA/bin directory
7. Point your web browser to:
- http://localhost:8080/seam-${example.name}/
+ http://localhost:8080/seam-${example.name}
+ Recall that ${example.name} is the name of the example folder unless the
+ folder begins with seam, in which the prefix "seam" is omitted. The
+ context path is set in META-INF/application.xml for EAR deployments and
+ WEB-INF/jboss-web.xml for WAR deployments.
+
NOTE: The examples use the HSQL database embedded in JBoss AS
@@ -140,20 +159,34 @@
http://seamframework.org/Download
-4. Edit the "build.properties" file and change tomcat.home to your
- Tomcat directory
+4. Open the "build.properties" file at the root of the Seam distribution in
+ your editor and change tomcat.home to point to your Tomcat directory
5. (Optional) Build Seam by running "ant" the Seam root directory
+ Only required if you are working from an SVN checkout.
-6. Build and deploy the example by running "ant tomcat.deploy"
- in the Seam "examples/${example.name}" directory
+6. Build and deploy the example by running the following command from the Seam
+ "examples/${example.name}" directory:
+
+ ant tomcat.deploy
+
+ To undeploy the example, run:
+ ant tomcat.undeploy
+
+ To redeploy/restart the deployed application, run:
+
+ ant tomcat.deploy
+
7. Start Tomcat
8. Point your web browser to:
http://localhost:8080/jboss-seam-${example.name}
+ Note that examples deployed to Tomcat use the context path prefix
+ jboss-seam- rather than seam- like with the JBoss AS deployment.
+
Running The TestNG Tests
------------------------
@@ -180,3 +213,4 @@
Make sure all these come before the referenced libraries
3. Locate and run the testng.xml file using the TestNG plugin
+
Modified: trunk/examples/registration/readme.txt
===================================================================
--- trunk/examples/registration/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/registration/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam Registration Example
=========================
-This is a trivial example for the Seam tutorial. It runs on both JBoss AS and Tomcat
-example.name=registration
\ No newline at end of file
+This is a trivial example for the Seam tutorial. It runs on both JBoss AS as an
+EAR and Tomcat with Embedded JBoss as a WAR.
+
+example.name=registration
Modified: trunk/examples/remoting/chatroom/readme.txt
===================================================================
--- trunk/examples/remoting/chatroom/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/remoting/chatroom/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,7 @@
Seam Remoting/Chatroom Example
==============================
+
This example shows using Seam Remoting to subscribe and publish messages to JMS.
-It runs on both JBoss AS and Tomcat
+It runs on JBoss AS as an EAR and Tomcat with Embedded JBoss as a WAR.
-example.name=chatroom
\ No newline at end of file
+example.name=chatroom
Modified: trunk/examples/remoting/helloworld/readme.txt
===================================================================
--- trunk/examples/remoting/helloworld/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/remoting/helloworld/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,7 @@
Seam Remoting/HelloWorld Example
================================
-This example is a trivial example of Seam Remoting.
-It runs on both JBoss AS and Tomcat
-example.name=helloworld
\ No newline at end of file
+This example is a trivial example of Seam Remoting. It runs on JBoss AS as an
+EAR and Tomcat with Embedded JBoss as a WAR.
+
+example.name=helloworld
Modified: trunk/examples/remoting/progressbar/readme.txt
===================================================================
--- trunk/examples/remoting/progressbar/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/remoting/progressbar/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,7 @@
Seam Remoting/ProgressBar Example
=================================
-This example shows how to create a progress bar using Seam Remoting.
-It runs on both JBoss AS and Tomcat
-example.name=progressbar
\ No newline at end of file
+This example shows how to create a progress bar using Seam Remoting. It runs
+on JBoss AS as an EAR and Tomcat with Embedded JBoss as a WAR.
+
+example.name=progressbar
Modified: trunk/examples/rss/readme.txt
===================================================================
--- trunk/examples/rss/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/rss/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,7 @@
Seam RSS Example
==================
-This example demonstrates the Seam RSS functionality. It runs on both JBoss AS and Tomcat.
-example.name=rss
\ No newline at end of file
+This example demonstrates the Seam RSS functionality. It runs on both JBoss AS
+as an EAR and Tomcat with Embedded JBoss as a WAR.
+
+example.name=rss
Modified: trunk/examples/seambay/readme.txt
===================================================================
--- trunk/examples/seambay/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/seambay/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,7 +1,8 @@
SeamBay Example
===============
-This example shows Seam/WS integration.
-It runs on both JBoss AS
+This example shows Seam/WS integration. It runs on JBoss AS as an EAR and
+JBoss with Embedded JBoss as a WAR.
+
Visit http://localhost:8080/seam-bay on JBoss AS
-Visit http://localhost:8080/jboss-seam-bay on Tomcat
\ No newline at end of file
+Visit http://localhost:8080/jboss-seam-bay on Tomcat
Modified: trunk/examples/seamdiscs/readme.txt
===================================================================
--- trunk/examples/seamdiscs/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/seamdiscs/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,7 +1,9 @@
SeamDiscs Example
=================================
-This example runs on JBoss AS 4.2.2.GA or later and Tomcat with Embedded JBoss.
+This example runs on JBoss AS 4.2.2.GA or later as an EAR and Tomcat with
+Embedded JBoss as a WAR.
+
Visit http://localhost:8080/seam-discs (on JBoss AS) or
http://localhost:8080/jboss-seam-discs (on Tomcat).
@@ -26,4 +28,4 @@
<tr:column>
...
</tr:column
-</tr:table>
\ No newline at end of file
+</tr:table>
Modified: trunk/examples/seampay/readme.txt
===================================================================
--- trunk/examples/seampay/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/seampay/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,7 +1,8 @@
SeamPay Example
===============
-This example shows Seam's EJB3 timer support.
-It runs on JBoss AS and Tomcat
+This example shows Seam's EJB3 timer support. It runs on JBoss AS as an EAR
+and Tomcat with Embedded JBoss as a WAR.
+
Visit http://localhost:8080/seam-pay on JBoss AS
-Visit http://localhost:8080/jboss-seam-pay on Tomcat
\ No newline at end of file
+Visit http://localhost:8080/jboss-seam-pay on Tomcat
Modified: trunk/examples/seamspace/readme.txt
===================================================================
--- trunk/examples/seamspace/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/seamspace/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,7 +1,8 @@
SeamSpace Example
===============
-This example demonstrates Seam Security.
-It runs on both JBoss AS and Tomcat
+This example demonstrates Seam Security. It runs on JBoss AS as an EAR and
+Tomcat with Embedded JBoss as a WAR.
+
Visit http://localhost:8080/seam-space on JBoss AS
-Visit http://localhost:8080/jboss-seam-space on Tomcat
\ No newline at end of file
+Visit http://localhost:8080/jboss-seam-space on Tomcat
Modified: trunk/examples/spring/readme.txt
===================================================================
--- trunk/examples/spring/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/spring/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,8 @@
Spring Example
===============
-This example shows Seam/Spring integration.
-Currently it runs on JBoss AS 4.2 only.
-Visit http://localhost:8080/jboss-seam-spring
\ No newline at end of file
+This example shows Seam/Spring integration. Currently it runs on JBoss AS 4.2
+as a WAR. It is deployed using the command "ant jbosswar" and undeployed using
+the command "ant jbosswar.undeploy".
+
+Visit http://localhost:8080/seam-spring
Added: trunk/examples/spring/resources/WEB-INF/jboss-web.xml
===================================================================
--- trunk/examples/spring/resources/WEB-INF/jboss-web.xml (rev 0)
+++ trunk/examples/spring/resources/WEB-INF/jboss-web.xml 2008-11-08 00:59:54 UTC (rev 9528)
@@ -0,0 +1,3 @@
+<jboss-web>
+ <context-root>/seam-spring</context-root>
+</jboss-web>
Modified: trunk/examples/todo/readme.txt
===================================================================
--- trunk/examples/todo/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/todo/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,7 @@
Seam Todo List Example
======================
+
This is a simple example for the Seam tutorial, demonstrating the
use of jBPM-based business process management.
-example.name=todo
\ No newline at end of file
+example.name=todo
Modified: trunk/examples/ui/readme.txt
===================================================================
--- trunk/examples/ui/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/ui/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,5 +1,6 @@
Seam UI Example
===============
+
This is a simple example demonstrating Seam UI.
-example.name=ui
\ No newline at end of file
+example.name=ui
Modified: trunk/examples/wicket/readme.txt
===================================================================
--- trunk/examples/wicket/readme.txt 2008-11-07 20:45:15 UTC (rev 9527)
+++ trunk/examples/wicket/readme.txt 2008-11-08 00:59:54 UTC (rev 9528)
@@ -1,6 +1,7 @@
Seam Wicket Example
===============
+
This is a port of the Booking example to Wicket.
By default it uses build time instrumentation, but you can use runtime
-instrumentation by specifying -DinstrumentAtBuildTime=false
\ No newline at end of file
+instrumentation by specifying -DinstrumentAtBuildTime=false
More information about the seam-commits
mailing list