[jboss-cvs] jboss-seam/examples/jpa ...
Michael Yuan
michael.yuan at jboss.com
Thu Nov 30 01:39:36 EST 2006
User: myuan
Date: 06/11/30 01:39:36
Modified: examples/jpa build.xml
Added: examples/jpa readme.txt
Log:
add GF support
Revision Changes Path
1.6 +71 -5 jboss-seam/examples/jpa/build.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: build.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/jpa/build.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- build.xml 29 Nov 2006 09:23:46 -0000 1.5
+++ build.xml 30 Nov 2006 06:39:35 -0000 1.6
@@ -11,6 +11,7 @@
<property name="lib" location="../../lib" />
<property name="applib" location="lib" />
<property name="seamlib" location="../../" />
+ <property name="hibernatelib" location="../../hibernate/lib" />
<path id="lib.classpath">
<fileset dir="${lib}" includes="*.jar"/>
<fileset dir="${applib}" includes="*.jar"/>
@@ -91,14 +92,16 @@
<include name="cglib.jar" />
-->
</lib>
- <lib dir="${lib}">
- <include name="hibernate-all.jar" />
+ <lib dir="${hibernatelib}">
+ <include name="*.jar" />
+ </lib>
<!-- do not need the following jars for 4.0.4 and 4.0.5
+ <lib dir="${lib}">
<include name="myfaces-api-1.1.4.jar" />
<include name="myfaces-impl-1.1.4.jar" />
<include name="commons*.jar" />
- -->
</lib>
+ -->
<lib dir="${build.jars}">
<include name="${projname}.jar" />
</lib>
@@ -151,10 +154,12 @@
<lib dir="${lib}">
<include name="myfaces-api-1.1.4.jar" />
<include name="myfaces-impl-1.1.4.jar" />
- <include name="hibernate-all.jar" />
<include name="thirdparty-all.jar" />
<include name="commons*.jar" />
</lib>
+ <lib dir="${hibernatelib}">
+ <include name="*.jar" />
+ </lib>
<lib dir="${build.jars}">
<include name="${projname}.jar" />
</lib>
@@ -210,10 +215,12 @@
<lib dir="${lib}">
<include name="myfaces-api-1.1.4.jar" />
<include name="myfaces-impl-1.1.4.jar" />
- <include name="hibernate-all.jar" />
<include name="thirdparty-all.jar" />
<include name="commons*.jar" />
</lib>
+ <lib dir="${hibernatelib}">
+ <include name="*.jar" />
+ </lib>
<lib dir="${build.jars}">
<include name="${projname}.jar" />
</lib>
@@ -224,6 +231,65 @@
</war>
</target>
+ <target name="glassfish" 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>
+ <metainf dir="${resources}/glassfish">
+ <include name="persistence.xml" />
+ </metainf>
+ </jar>
+
+ <war destfile="${build.jars}/${projname}.war"
+ webxml="${resources}/glassfish/web.xml">
+ <webinf dir="${resources}">
+ <include name="faces-config.xml" />
+ <include name="pages.xml" />
+ <include name="navigation.xml" />
+ <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="el-api.jar" />
+ <include name="el-ri.jar" />
+ <include name="jsf-facelets.jar" />
+ <include name="ajax4jsf.jar" />
+ <include name="oscache-2.3.2.jar" />
+ </lib>
+ <lib dir="${applib}/mc">
+ <include name="*.jar" />
+ </lib>
+ <lib dir="${lib}">
+ <include name="myfaces-api-1.1.4.jar" />
+ <include name="myfaces-impl-1.1.4.jar" />
+ <include name="thirdparty-all.jar" />
+ <include name="commons*.jar" />
+ </lib>
+ <lib dir="${hibernatelib}">
+ <include name="*.jar" />
+ </lib>
+ <lib dir="${build.jars}">
+ <include name="${projname}.jar" />
+ </lib>
+ <classes dir="${resources}/glassfish">
+ <include name="log4j.xml" />
+ </classes>
+ <fileset dir="${view}"/>
+ </war>
+ </target>
+
<target name="deploy" depends="jboss">
<copy file="${build.jars}/${projname}.war"
todir="${jboss.home}/server/default/deploy"/>
1.1 date: 2006/11/30 06:39:35; author: myuan; state: Exp;jboss-seam/examples/jpa/readme.txt
Index: readme.txt
===================================================================
This is the Hotel Booking example implemented in Seam POJO and Hibernate JPA.
It can be deployed in JBoss AS 4.x, WebLogic, Glassfish, Tomcat without
the EJB3 container.
JBoss AS 4.0.5 (no EJB3):
* Install JBoss AS 4.0.5 with the default J2EE profile
* ant jboss
* Deploy build/jboss-seam-jpa.war
* Start JBoss AS
* Access the app at http://localhost:8080/jboss-seam-jpa/
WebLogic 9.2 (NOT working yet):
* Install WebLogic 9.2
* ant weblogic
* Start WebLogic
* Load the admin console http://localhost:7001/console/
* Deploy build/jboss-seam-jpa.war
* Access the app at http://localhost:7001/jboss-seam-jpa/
Tomcat (no embedded EJB3):
* Install Tomcat
* ant tomcat
* Deploy build/jboss-seam-jpa.war
* Start Tomcat
* Access the app at http://localhost:8080/jboss-seam-jpa/
Glassfish
* Install Glassfish v1 UR1
* ant glassfish
* Start GlassFish
* Load the admin console http://localhost:4848/
* Deploy build/jboss-seam-jpa.war as Web App
* Access the app at http://localhost:8080/jboss-seam-jpa/
More information about the jboss-cvs-commits
mailing list