[weld-commits] Weld SVN: r5343 - in archetypes/tags/1.0.0-BETA1/jsf: jee-minimal/src/main/resources/archetype-resources and 1 other directories.
weld-commits at lists.jboss.org
weld-commits at lists.jboss.org
Thu Dec 17 17:07:34 EST 2009
Author: dan.j.allen
Date: 2009-12-17 17:07:34 -0500 (Thu, 17 Dec 2009)
New Revision: 5343
Modified:
archetypes/tags/1.0.0-BETA1/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt
archetypes/tags/1.0.0-BETA1/jsf/jee/src/main/resources/archetype-resources/readme.txt
archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt
Log:
update readme files
Modified: archetypes/tags/1.0.0-BETA1/jsf/jee/src/main/resources/archetype-resources/readme.txt
===================================================================
--- archetypes/tags/1.0.0-BETA1/jsf/jee/src/main/resources/archetype-resources/readme.txt 2009-12-17 21:58:38 UTC (rev 5342)
+++ archetypes/tags/1.0.0-BETA1/jsf/jee/src/main/resources/archetype-resources/readme.txt 2009-12-17 22:07:34 UTC (rev 5343)
@@ -1,14 +1,16 @@
${artifactId}
+ Source archetype: weld-jsf-jee
+
What is it?
===========
This is your project! It's a sample, deployable Maven 2 project to help you
get your foot in the door developing with Java EE 6. This project is setup to
allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0,
- EJB 3.1 and JPA 2.0) that can run on a certified application server (Full or
- Web Profile). It includes a persistence unit and some sample persistence and
- transaction code to help you get your feet wet with database access in
+ EJB 3.1 and JPA 2.0) that can run on a certified application server (Complete
+ or Web Profile). It includes a persistence unit and some sample persistence
+ and transaction code to help you get your feet wet with database access in
enterprise Java.
System requirements
@@ -30,17 +32,6 @@
Deploying the application
=========================
- You can deploy the application without moving any files around using the
- embedded GlassFish application server.
-
- To run the application using embedded GlassFish, execute this command:
-
- mvn package embedded-glassfish:run
-
- The application will be running at the following URL:
-
- http://localhost:7070/${artifactId}
-
To deploy the application to JBoss AS (standalone), first make sure that the
JBOSS_HOME environment variable points to a JBoss AS 6.0 installation.
Alternatively, you can set the location of JBoss AS using the following
@@ -74,9 +65,36 @@
http://localhost:8080/${artifactId}
- If you want to deploy to GlassFish (standalone), you can upload the
- target/${artifactId}.war archive using the web-based administration console.
+ If you want to deploy to GlassFish (standalone), you first need to change
+ the name of the DataSource used by the persistence unit! Open this file:
+ src/main/resources/META-INF/persistence.xml
+
+ Change the value of <jta-data-source> to the following:
+
+ <jta-data-source>jdbc/__default</jta-data-source>
+
+ This configuration uses the built-in default Derby DataSource in GlassFish.
+ Optionally, you can use an alternative DataSource of your choice.
+
+ Now, execute the command:
+
+ mvn package
+
+ You can now deploy the target/${artifactId}.war archive and launch the
+ application the through GlassFish administration console.
+
+ Alternatively, you can deploy the application without moving any files around
+ using the embedded GlassFish application server.
+
+ To run the application using embedded GlassFish, execute this command:
+
+ mvn package embedded-glassfish:run
+
+ The application will be running at the following URL:
+
+ http://localhost:7070/${artifactId}
+
Importing the project into an IDE
=================================
Modified: archetypes/tags/1.0.0-BETA1/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt
===================================================================
--- archetypes/tags/1.0.0-BETA1/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17 21:58:38 UTC (rev 5342)
+++ archetypes/tags/1.0.0-BETA1/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17 22:07:34 UTC (rev 5343)
@@ -1,5 +1,7 @@
${artifactId}
+ Source archetype: weld-jsf-jee-minimal
+
What is it?
===========
Modified: archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt
===================================================================
--- archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17 21:58:38 UTC (rev 5342)
+++ archetypes/tags/1.0.0-BETA1/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17 22:07:34 UTC (rev 5343)
@@ -1,5 +1,7 @@
${artifactId}
+ Source archetype: weld-jsf-servlet-minimal
+
What is it?
===========
More information about the weld-commits
mailing list