Skip to content

Commit 6c7d1f1

Browse files
author
Arun Gupta
committed
Added Cargo instructions
1 parent add5999 commit 6c7d1f1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,27 @@ This workspace consists of Java EE 7 Samples. They are divided in different dire
88

99
1. Open the sample in NetBeans 7.4 beta+
1010
2. Click on "Run" (sample is built and deployed, main page shows up)
11-
3. Main page tells what the feature is about and what to do to execute the sample and see the output
11+
3. Main page provides feature name, what to do to run the sample, and displays the output
1212

13-
### Alternative way ###
14-
1. mvn clean package
15-
2. asadmin deploy target/XXX.war
13+
### Cargo ###
14+
15+
1. In one terminal, anywhere in the project with a pom.xml: "mvn cargo:run" to start GlassFish server
16+
2. In another terminal, in the actual sample directory
17+
1. ``mvn package cargo:deploy`` to deploy for the first time
18+
2. ``mvn package cargo:redeploy`` to redeploy (or use this all the time)
19+
3. ``mvn cargo:undeploy`` to undeploy
20+
3. Check for application name printed by Cargo output. Access the application at http://localhost:8080/<APP-NAME>
21+
4. Same as 3 in the first one
22+
23+
### Manual ###
24+
1. ``mvn clean package``
25+
2. ``asadmin deploy target/XXX.war`` to deploy the WAR file
1626
3. Access http://localhost:8080/XXX/ (main page shows up)
17-
4. Same as 3 in the previous one
27+
4. Same as 3 in the first one
1828

1929
### TBD ###
2030

2131
1. Configure GlassFish Embedded to run the samples automatically
22-
2. Configure Cargo to run the samples
2332

2433
## List of Samples ##
2534

0 commit comments

Comments
 (0)