[jboss-cvs] jboss-seam/examples/icefaces ...
Gavin King
gavin.king at jboss.com
Sun Nov 19 23:55:00 EST 2006
User: gavin
Date: 06/11/19 23:55:00
Added: examples/icefaces build.xml readme.txt
Log:
add icefaces example to cvs, thanks to icesoft
Revision Changes Path
1.1 date: 2006/11/20 04:55:00; author: gavin; state: Exp;jboss-seam/examples/icefaces/build.xml
Index: build.xml
===================================================================
<?xml version="1.0"?>
<project name="Booking" default="deploy" basedir=".">
<!-- Naming -->
<property name="Name" value="Seam on JBoss Booking Example"/>
<property name="example.name" value="jboss-seam-booking"/>
<!-- WAR -->
<zipfileset id="example.war.docroot"
dir="view">
<include name="**/*"/>
</zipfileset>
<zipfileset id="example.war.webinf"
prefix="WEB-INF"
dir="resources/WEB-INF" >
<patternset refid="meta.files"/>
<include name="classes/tidy.properties"/>
</zipfileset>
<zipfileset id="example.war.webinf.lib"
prefix="WEB-INF/lib"
dir="resources/WEB-INF/lib">
<include name="*.jar"/>
</zipfileset>
<zipfileset id="example.war.webinf.lib.extra"
prefix="WEB-INF/lib"
refid="extra.seam.jar"/>
<!-- EJB3 -->
<fileset id="example.ejb3.root"
dir="resources">
<include name="import.sql"/>
<include name="seam.properties"/>
<include name="META-INF/persistence.xml"/>
<include name="META-INF/ejb-jar.xml"/>
</fileset>
<fileset id="example.ejb3.lib" dir="../../lib">
<include name="_NONE_"/>
</fileset>
<!-- EAR -->
<zipfileset id="example.ear.resources"
prefix="META-INF"
dir="resources/META-INF">
<include name="*"/>
<exclude name="persistence.xml"/>
<exclude name="jboss-beans.xml"/>
<exclude name="ejb-jar.xml"/>
</zipfileset>
<!-- Deploy -->
<fileset id="example.deploy"
dir="resources">
<include name="booking-ds.xml"/>
</fileset>
<!-- Undeploy -->
<patternset id="example.undeploy">
<include name="booking-ds.xml"/>
</patternset>
<!-- Test -->
<fileset id="example.resources" dir="resources">
<include name="**/*.*"/>
</fileset>
<!-- Tomcat build -->
<zipfileset id="example.tomcat.war.webinf"
prefix="WEB-INF"
dir="resources/WEB-INF" >
<include name="faces-config.xml"/>
<include name="navigation.xml"/>
<include name="pages.xml"/>
<include name="components.xml"/>
<include name="web.xml"/>
</zipfileset>
<fileset id="example.tomcat.resources"
dir="resources">
<include name="seam.properties"/>
<include name="import.sql"/>
<include name="META-INF/persistence.xml"/>
<include name="META-INF/ejb-jar.xml"/>
<include name="META-INF/jboss-beans.xml"/> <!-- TODO: move out of META-INF -->
</fileset>
<!-- Overrides -->
<property name="src.java.dir" value="src"/>
<property name="src.test.dir" value="src"/>
<property name="test.classpath" value="test.eejb.classpath"/>
<property name="tomcat.conf" value="eejb.conf"/>
<import file="../../build.xml"/>
</project>
1.1 date: 2006/11/20 04:55:00; author: gavin; state: Exp;jboss-seam/examples/icefaces/readme.txt
Index: readme.txt
===================================================================
Seam Booking Example
====================
This example demonstrates the use of Seam in a Java EE 5 environment.
Transaction and persistence context management is handled by the
EJB container.
This example can also run in Tomcat with the JBoss Embeddable EJB3
container.
How to Build and Deploy the Example on JBoss AS
-----------------------------------------------
1. Download and install JBoss AS 4.0.5, with the EJB 3.0 profile
2. Download the JBoss Seam distribution from:
http://labs.jboss.com/portal/jbossseam/download/index.html
3. Edit the "build.properties" file and change jboss.home to your
JBoss AS installation directory
4. Build Seam by running "ant" the Seam root directory
5. Build and deploy the example by running "ant" in the Seam
"examples/booking" directory
6. Start JBoss AS by typing "bin/run.sh" in the JBoss home directory
7. Point your web browser to:
http://localhost:8080/seam-booking/
NOTE: The default build uses the HSQL database embedded in JBoss AS
How to Build and Deploy the Example on Tomcat
---------------------------------------------
1. Download and install Tomcat
NOTE: Due to a bug, you must install Tomcat to a directory
path with no spaces. The example does not work in a default
install of Tomcat.
2. Download the JBoss Seam distribution from:
http://labs.jboss.com/portal/jbossseam/download/index.html
3. Edit the "build.properties" file and change tomcat.home to your
Tomcat installation directory
4. Build Seam by running "ant" the Seam root directory
5. Build and deploy the example by running "ant deploy.tomcat"
in the Seam "examples/booking" directory
6. Start Tomcat
7. Point your web browser to:
http://localhost:8080/jboss-seam-booking/
Running The TestNG Tests
------------------------
In the "examples/booking" directory, type "ant testexample"
Running the TestNG Tests in Eclipse
-----------------------------------
1. Install the TestNG Eclipse plugin from http://beust.com/eclipse
2. Create the jboss-seam Eclipse project with the following directories
in your source path:
src/main/
examples/booking/src/
examples/booking/resources/
embedded-ejb/conf/
And all jar files from the following directories in your classpath:
lib/
embedded-ejb/lib
3. Run examples/booking/src/org/jboss/seam/example/booking/test/testng.xml
using the TestNG plugin.
More information about the jboss-cvs-commits
mailing list