[jboss-cvs] jboss-seam/examples/contactlist ...

Gavin King gavin.king at jboss.com
Wed Sep 27 20:18:33 EDT 2006


  User: gavin   
  Date: 06/09/27 20:18:33

  Added:       examples/contactlist    .cvsignore build.xml readme.txt
  Log:
  contact list example
  
  Revision  Changes    Path
  1.1      date: 2006/09/28 00:18:33;  author: gavin;  state: Exp;jboss-seam/examples/contactlist/.cvsignore
  
  Index: .cvsignore
  ===================================================================
  output
  build
  test-output
  
  
  
  1.1      date: 2006/09/28 00:18:33;  author: gavin;  state: Exp;jboss-seam/examples/contactlist/build.xml
  
  Index: build.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <project name="CRUD" default="deploy" basedir=".">
  
      <!-- Example name -->
      <property name="Name"                   value="Seam CRUD Example"/>
      <property name="example.name"           value="jboss-seam-crud"/>
  
      <!-- 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"/>
      </zipfileset>
      
      <zipfileset id="example.war.webinf.lib"
              prefix="WEB-INF/lib"
                 dir="../../facelets/lib">
          <include name="*.jar"/>
      </zipfileset>
      
      <zipfileset id="example.war.webinf.lib.extra" 
      	    prefix="WEB-INF/lib"
      	     refid="extra.seam.jar"/>
      
      <zipfileset id="example.war.webinf.lib.extra" 
      	    prefix="WEB-INF/lib"
      	     refid="ui.seam.jar"/>
      
      <!-- EJB3 -->
      <fileset id="example.ejb3.root"
              dir="resources">
          <include name="import.sql"/>
          <include name="seam.properties"/>
      	<include name="META-INF/ejb-jar.xml"/>
          <include name="META-INF/persistence.xml"/>
      </fileset>
  
      <!-- EAR -->
      <zipfileset id="example.ear.resources"
              prefix="META-INF"
                 dir="resources/META-INF">
          <include name="*"/>
          <exclude name="persistence.xml"/>
      	<exclude name="META-INF/ejb-jar.xml"/>
      </zipfileset>
  
      <fileset id="example.ejb3.lib" dir="../../lib">
          <include name="_NONE_"/>
      </fileset>
    
  	<!-- 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="web.xml"/>
         <include name="components.xml"/>
         <include name="faces-config.xml"/>
      </zipfileset>
    
      <fileset id="example.tomcat.resources"
            dir="resources">
         <include name="seam.properties"/>
         <include name="META-INF/persistence.xml"/>
    	   <include name="META-INF/ejb-jar.xml"/>
      </fileset>
    
  
      <!-- Deploy -->
      <fileset id="example.deploy"
              dir="resources">
          <include name="_NONE_"/>
      </fileset>
  
      <!-- Undeploy -->
      <patternset id="example.undeploy">
          <include name="_NONE_"/>
      </patternset>
  
      <!-- 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/09/28 00:18:33;  author: gavin;  state: Exp;jboss-seam/examples/contactlist/readme.txt
  
  Index: readme.txt
  ===================================================================
  Seam Registration Example
  =========================
  This is a trivial example for the Seam tutorial.
  
  How to Build and Deploy the Example on JBoss AS
  -----------------------------------------------
  
  1. Download and install JBoss AS 4.0.4, 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/registration" 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-registration/
  
     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/registration" directory
  
  6. Start Tomcat
  
  7. Point your web browser to:
  
     http://localhost:8080/jboss-seam-registration/
  
  Running The TestNG Tests
  ------------------------
  
  In the "examples/registration" 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/registration/src/
     examples/registration/resources/
     embedded-ejb/conf/
     
     And all jar files from the following directories in your classpath:
     
     lib/
     embedded-ejb/lib
     
  3. Run examples/registration/src/org/jboss/seam/example/registration/test/testng.xml
     using the TestNG plugin.
     
  
  



More information about the jboss-cvs-commits mailing list