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

Michael Yuan michael.yuan at jboss.com
Tue Jun 26 19:03:19 EDT 2007


  User: myuan   
  Date: 07/06/26 19:03:19

  Modified:    examples/hibernate2   build.xml readme.txt
  Log:
  tomcat support
  
  Revision  Changes    Path
  1.18      +65 -0     jboss-seam/examples/hibernate2/build.xml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: build.xml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/build.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -b -r1.17 -r1.18
  --- build.xml	22 Jun 2007 06:31:32 -0000	1.17
  +++ build.xml	26 Jun 2007 23:03:19 -0000	1.18
  @@ -151,6 +151,71 @@
       </war>
     </target>
     
  +  <target name="tomcat" depends="compile">
  +    
  +    <mkdir dir="${build.jars}"/>
  +    
  +    <jar destfile="${build.jars}/${projname}.jar">
  +      <fileset dir="${build.classes}">
  +        <include name="**/*.class"/>
  +      </fileset>
  +      <fileset dir="${resources}">
  +        <include name="seam.properties" />
  +        <include name="import.sql" />
  +      </fileset>
  +      <fileset dir="${resources}/tomcat">
  +        <include name="hibernate.cfg.xml" />
  +      </fileset>
  +    </jar>
  +
  +    <war destfile="${build.jars}/${projname}.war"
  +         webxml="${resources}/web.xml">
  +      <webinf dir="${resources}">
  +        <include name="faces-config.xml" />
  +        <include name="pages.xml" />
  +        <include name="jboss-web.xml" />
  +      </webinf>
  +      <webinf dir="${resources}/tomcat">
  +        <include name="components.xml" />
  +      </webinf>
  +      <lib dir="${seamlib}">
  +        <include name="jboss-seam.jar" />
  +        <include name="jboss-seam-ui.jar" />
  +        <include name="jboss-seam-debug.jar" />
  +      </lib>
  +      <lib dir="${applib}">
  +        <include name="cglib.jar" />
  +        <include name="el-api.jar" />
  +        <include name="el-ri.jar" />
  +      </lib>
  +      <lib dir="${hibernatelib}">
  +        <include name="*.jar" />
  +      </lib>
  +      <lib dir="${lib}">
  +        <include name="ajax4jsf*.jar" />
  +        <include name="oscache*.jar" />
  +        <include name="jboss-el.jar" />
  +        <include name="jboss-el-api.jar" />
  +        <include name="jsf-facelets.jar" />
  +        <include name="jsf-api.jar" />
  +        <include name="jsf-impl.jar" />
  +        <include name="thirdparty-all.jar" />
  +        <include name="commons*.jar" />
  +      </lib>
  +      <lib dir="${applib}/mc">
  +        <include name="*.*" /> 
  +      </lib>
  +      <lib dir="${build.jars}">
  +        <include name="${projname}.jar" />
  +      </lib>
  +      <classes dir="${resources}/tomcat">
  +        <include name="log4j.xml" />
  +      </classes>
  +      <fileset dir="${view}"/>
  +    </war>
  +  </target>
  +
  +  
     <target name="weblogic" depends="compile">
       
       <mkdir dir="${build.jars}"/>
  
  
  
  1.5       +25 -1     jboss-seam/examples/hibernate2/readme.txt
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: readme.txt
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/hibernate2/readme.txt,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- readme.txt	22 Jun 2007 03:23:49 -0000	1.4
  +++ readme.txt	26 Jun 2007 23:03:19 -0000	1.5
  @@ -26,7 +26,31 @@
     * Start the application
     * Access it at http://localhost:9080/context_root/index.html
   
  -Tomcat (the build is the same as JBoss 4.2.0 GA WAR):
  +Plain Tomcat
  +  * Install Tomcat 5.5
  +  * Copy the JARs in lib/tomcat into $TOMCAT_HOME/common/lib
  +  * Copy the following Context element into $TOMCAT_HOME/conf/server.xml
  +  * ant tomcat
  +  * Deploy to $TOMCAT_HOME/webapps/jboss-seam-hibernate.war
  +  * Start Tomcat
  +  * Access the app at http://localhost:8080/jboss-seam-hibernate/
  +Example of the Context element in server.xml:
  +<Server ...>
  +  <Service ...>
  +    <Engine ...>
  +      <Host ...>
  +        <Context path="/jboss-seam-hibernate" docBase="jboss-seam-hibernate"
  +                 debug="5" reloadable="true" crossContext="true">
  +
  +          <Resource name="jdbc/TestDB" auth="Container" 
  +               type="javax.sql.DataSource"
  +               maxActive="100" maxIdle="30" maxWait="10000"
  +               username="sa" driverClassName="org.hsqldb.jdbcDriver"
  +               url="jdbc:hsqldb:."/>
  +
  +        </Context>
  +
  +Tomcat with embeddable JBoss (the build is the same as JBoss 4.2.0 GA WAR):
     * Install Tomcat
     * Install Embeddable JBoss
     * ant
  
  
  



More information about the jboss-cvs-commits mailing list