Date: 2004-07-30T16:16:20 Editor: JacekLaskowski <[EMAIL PROTECTED]> Wiki: Apache Geronimo Wiki Page: PetStore URL: http://wiki.apache.org/geronimo/PetStore
Info on META-INF/openejb-jar.xml Change Log: ------------------------------------------------------------------------------ @@ -20,6 +20,8 @@ NOTE: Explanation on what particular file or configuration setting do(es?) will be added later. +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. Unpack petstore.ear (one of the files that constitute the application) to a directory, say ''/petstore/ear'' (on Windows it'd be ''c:/petstore/ear'') 1. Change the current working directory to /petstore/ear. @@ -44,6 +46,38 @@ </application> }}} + 1. Create {{{META-INF/openejb-jar.xml}}}: + + {{{ +<?xml version="1.0"?> + +<openejb-jar + xmlns="http://www.openejb.org/xml/ns/openejb-jar" + configId="petstore-ejb" + parentId="petstore"> + + <enterprise-beans/> +</openejb-jar> +}}} + + and add it to every EJB module: + + * asyncsender-ejb.jar + * cart-ejb.jar + * catalog-ejb.jar + * customer-ejb.jar + * petstore-ejb.jar + * signon-ejb.jar + * uidgen-ejb.jar + + using the following command: + + {{{ +jar -uvf <ejb-module> META-INF/openejb-jar.xml +}}} + + Once it's done, delete META-INF/openejb-jar.xml file. + 1. Only RARs and WARs are currently supported in an unpacked EAR, so jar up /petstore/ear directory. {{{ @@ -60,7 +94,7 @@ java -jar bin/deployer.jar --install --module `cygpath --windows /petstore/petstore.ear` }}} -That's where out story ends up. +That's where our story ends up. 1. As mentioned at [http://wiki.apache.org/geronimo/Deployment#head-754164850f38c1ecdaf6b8ed894cb192bc36c5f4 Web Application section] of [http://wiki.apache.org/geronimo/Deployment Deployment] chapter {{{WEB-INF/geronimo-jetty.xml}}} must be added to petstore.war.