[jboss-cvs] jboss-seam/examples/hibernate2 ...
Michael Yuan
michael.yuan at jboss.com
Mon Jan 29 19:12:26 EST 2007
User: myuan
Date: 07/01/29 19:12:26
Modified: examples/hibernate2 build.xml readme.txt
Log:
websphere support
Revision Changes Path
1.8 +58 -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.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- build.xml 7 Dec 2006 21:44:57 -0000 1.7
+++ build.xml 30 Jan 2007 00:12:25 -0000 1.8
@@ -231,6 +231,64 @@
</war>
</target>
+ <target name="websphere" 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}/websphere">
+ <include name="hibernate.cfg.xml" />
+ </fileset>
+ </jar>
+
+ <war destfile="${build.jars}/${projname}.war"
+ webxml="${resources}/websphere/web.xml">
+ <webinf dir="${resources}">
+ <include name="faces-config.xml" />
+ <include name="pages.xml" />
+ <include name="navigation.xml" />
+ </webinf>
+ <webinf dir="${resources}/websphere">
+ <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="ajax4jsf.jar" />
+ <include name="oscache-2.3.2.jar" />
+ </lib>
+ <lib dir="${lib}">
+ <include name="el-api.jar" />
+ <include name="el-ri.jar" />
+ <include name="jsf-facelets.jar" />
+ <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}/websphere">
+ <include name="log4j.xml" />
+ </classes>
+ <fileset dir="${view}"/>
+ </war>
+ </target>
+
<target name="glassfish" depends="compile">
<mkdir dir="${build.jars}"/>
1.3 +9 -0 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.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- readme.txt 1 Dec 2006 23:57:22 -0000 1.2
+++ readme.txt 30 Jan 2007 00:12:25 -0000 1.3
@@ -17,6 +17,15 @@
* Deploy build/jboss-seam-hibernate.war
* Access the app at http://localhost:7001/jboss-seam-hibernate/
+WebSphere 6.1:
+
+ * Install and run WebSphere 6.1
+ * ant websphere
+ * Install build/jboss-seam-hibernate.war and specify a context_root
+ * From the "Enterprise Applications" list select: "jboss-seam-hibernate_war" --> "Manager Modules" --> "jboss-seam-hibernate.war" --> "Classes loaded with application class loader first", and then Apply
+ * Start the application
+ * Access it at http://localhost:9080/context_root/index.html
+
Tomcat (no embedded EJB3):
* Install Tomcat
* ant tomcat
More information about the jboss-cvs-commits
mailing list