You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by Apache Wiki <wi...@apache.org> on 2005/07/26 09:02:59 UTC
[Geronimo Wiki] Update of "PetStore" by GiannyDamour
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 GiannyDamour:
http://wiki.apache.org/geronimo/PetStore
------------------------------------------------------------------------------
== Deploying PetStore ==
- {{{
- It's still a work in progress - current issue: javax.ejb.NoSuchEntityException: Entity [InstanceContext: container=geronimo.server:EJBModule=customer-ejb.jar,J2EEApplication=petstore,J2EEServer=geronimo,j2eeType=EntityBean,name=AddressEJB, id=1] not found
- }}}
-
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.
- NOTE: Explanation on what particular file or configuration setting do(es?) will be added later.
+ The installation steps are:
- NOTE: There're a lot of steps to be done that require creating files manually. Most, if not all, files will be created by a JSR-88-compliant tool during the deployment process.
+ 1. unzip {{{petstore-1_3_2.zip}}};
- Throughout the document the following variables are assumed to be set:
+ 1. patch the resulting directory with the patch {{{src/etc/petstore1.3.2.diff}}};
- * PETSTORE_HOME - the directory where PetStore is installed, e.g. C:\projs\petstore
+ 1. build the Pet Store applications - all of them, not only the petstore one;
- 1. Set the {{{petstore.ear.path}}} variable to PETSTORE_HOME\petstore.ear
+ 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
- 1. Run {{{maven -u}}} to get familiar with the available commands
+ 1. distribute the Java Pet Store and Java Pet Store Supplier application {{{maven -o}}}.
+ Once installed, the Pet Store applications are 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/.
+
+ TODO:
+ * Explanations on the Geronimo specific configurations.
+
+ NOTE:
+ * There're a lot of steps to be done that require creating files manually. Most, if not all, files will be created by a JSR-88-compliant tool during the deployment process;
+
+ * {{{maven -u}}} can be used to display the available commands
- {{{
+ {{{
...
[petstore] ( NO DEFAULT GOAL )
deploy ......................... Deploys PetStore
- initdb ......................... Initializes database
start .......................... Starts PetStore
stop ........................... Stops PetStore
...
}}}
-
- 1. Run {{{maven -o petstore:deploy petstore:start petstore:initdb}}}
-
- 1. Point the browser of your choice to http://localhost:8080/petstore/ and select any URL - it will start the process of populating the database.
-
- 1. To be continued...
= Deploying Java Pet Store Sample Application 1.1.2 =