Author: dan.j.allen
Date: 2009-12-17 17:20:40 -0500 (Thu, 17 Dec 2009)
New Revision: 5346
Modified:
archetypes/trunk/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt
archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/readme.txt
archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt
Log:
whitespace
Modified: archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/readme.txt
===================================================================
--- archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/readme.txt 2009-12-17
22:20:26 UTC (rev 5345)
+++ archetypes/trunk/jsf/jee/src/main/resources/archetype-resources/readme.txt 2009-12-17
22:20:40 UTC (rev 5346)
@@ -1,14 +1,17 @@
- ${artifactId}
+ ${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 +33,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 +66,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/trunk/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt
===================================================================
---
archetypes/trunk/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17
22:20:26 UTC (rev 5345)
+++
archetypes/trunk/jsf/jee-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17
22:20:40 UTC (rev 5346)
@@ -1,5 +1,8 @@
- ${artifactId}
+ ${artifactId}
+
+ Source archetype: weld-jsf-jee-minimal
+
What is it?
===========
Modified:
archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt
===================================================================
---
archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17
22:20:26 UTC (rev 5345)
+++
archetypes/trunk/jsf/servlet-minimal/src/main/resources/archetype-resources/readme.txt 2009-12-17
22:20:40 UTC (rev 5346)
@@ -1,5 +1,8 @@
- ${artifactId}
+ ${artifactId}
+
+ Source archetype: weld-jsf-servlet-minimal
+
What is it?
===========