geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Geronimo Wiki] Update of "PetStore" by JacekLaskowski
Date Sun, 07 Aug 2005 13:34:33 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Geronimo Wiki" for change notification.

The following page has been changed by JacekLaskowski:
http://wiki.apache.org/geronimo/PetStore

The comment on the change is:
Further simplifications in PetStore 1.3.2 deployment

------------------------------------------------------------------------------
  
  The Java Pet Store Demo is a sample application brought to you by the [http://java.sun.com/blueprints
Java BluePrints] program at [http://java.sun.com Java Software], [http://sun.com Sun Microsystems].
  
+ The home directory of Pet Store Demo application in Geronimo source tree is {{{sandbox/petstore}}}.
+ 
  == Prerequisites ==
  
   * Geronimo build 209955 or later (these directions will not work for Milestone 3 or earlier)
@@ -25, +27 @@

  
   * Download [http://java.sun.com/blueprints/code/index.html#java_pet_store_demo Java Pet
Store Sample Application 1.3.2]
  
+  * Java2 SDK 1.4 (Pet Store uses '''enum''' as a variable name that breaks the compilation)
+ 
- == Deploying PetStore ==
+ == Deploying Pet Store Demo ==
  
  Before going on, please keep in mind that {{{"whom ever wrote petstore should be hunted
down..."}}}. It's been said during one IRC session and I couldn't resist to include it.
  
  The installation steps are:
  
-  1. unzip {{{petstore-1_3_2.zip}}};
+  1. Go to {{{sandbox/petstore}}} directory
  
-  1. patch the resulting directory with the patch {{{src/etc/petstore1.3.2.diff}}};
+  1. Unzip {{{petstore-1_3_2.zip}}}
  
-  1. build the Pet Store applications - all of them, not only the petstore one;
+  1. patch the resulting directory with the patch {{{src/etc/petstore1.3.2.diff}}}
  
-  1. update the property {{{petstore.home}}} defined by the file {{{project.properties}}}.
The value to be specified is the path of the directory previously patched; and
+  {{{
+ $ patch -p0 < src/etc/petstore1.3.2.diff
+ patching file petstore1.3.2/src/apps/petstore/src/docroot/CatalogDAOSQL.xml
+ patching file petstore1.3.2/src/apps/petstore/src/docroot/WEB-INF/web.xml
+ patching file petstore1.3.2/src/apps/petstore/src/docroot/populate/PopulateSQL.xml
+ patching file petstore1.3.2/src/components/catalog/src/ejb-jar.xml
+ patching file petstore1.3.2/src/components/customer/src/ejb-jar.xml
+ }}}
  
-  1. distribute the Java Pet Store and Java Pet Store Supplier application {{{maven -o}}}.
+  1. Build the Pet Store Demo. It boils down to executing build.sh or build.bat in {{{petstore1.3.2/src}}}
directory, possibly with some additional modifications in the build.properties file. See petstore1.3.2/docs/building.html
for a complete information.
  
- Once installed, the Pet Store applications are started and stopped with {{{maven -o petstore:start}}}
and {{{maven -o petstore:stop}}} respectively.
+  1. Distribute the Java Pet Store Demo application {{{maven -o}}}.
  
+ Once installed, the Pet Store Demo application is started and stopped with {{{maven -o petstore:start}}}
and {{{maven -o petstore:stop}}}, respectively.
+ 
- To access the Pet Store Application, point your browser to http://localhost:8080/petstore/.
+ To access the Java Pet Store application, point your browser to http://localhost:8080/petstore/.
  
  TODO:
   * Explanations on the Geronimo specific configurations.

Mime
View raw message