...
After extracting the zip file, a computer directory is created. In that directory open the build.properties file and edit the properties to match your environment as shown in the following example:
Code Block |
---|
| xml |
---|
borderStyle | solid |
---|
title | build.properties |
---|
borderStyle | solid |
---|
| xml |
---|
|
## Set the Geronimo 1.1 home here
geronimo.home=<geronimo_home>
## Set XDoclet 1.2.3 Home
xdoclet.home=<xdoclet_home>
|
...
The following example shows the JBoss deployment descriptor.
Code Block |
---|
| xml | borderStyle | solid |
---|
title | jboss.xml |
---|
borderStyle | solid |
---|
| xml |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<jboss>
<enterprise-beans>
<session>
<ejb-name>ShoppingCart</ejb-name>
<local-jndi-name>ShoppingCart</local-jndi-name>
<method-attributes>
</method-attributes>
</session>
<session>
<ejb-name>ItemService</ejb-name>
<local-jndi-name>ItemService</local-jndi-name>
<method-attributes>
</method-attributes>
</session>
</enterprise-beans>
<resource-managers>
</resource-managers>
</jboss>
|
Compare it with the contents of the Geronimo deployment plan shown in the following example.
Code Block |
---|
| xml | borderStyle | solid |
---|
title | openejb-jar.xml |
---|
borderStyle | solid |
---|
| xml |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<openejb-jar xmlns="http://www.openejb.org/xml/ns/openejb-jar-2.1">
<dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
<dep:moduleId>
<dep:groupId>org.apache.geronimo.samples</dep:groupId>
<dep:artifactId>ComputerEJB</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>car</dep:type>
</dep:moduleId>
<dep:dependencies/>
<dep:hidden-classes/>
<dep:non-overridable-classes/>
</dep:environment>
<enterprise-beans>
<session>
<ejb-name>ShoppingCart</ejb-name>
<ejb-ref>
<ref-name>ejb/ItemServiceLocal</ref-name>
<ejb-link>ItemService</ejb-link>
</ejb-ref>
</session>
<session>
<ejb-name>ItemService</ejb-name>
</session>
</enterprise-beans>
</openejb-jar>
|
...
Looking at the web archive related configuration files give you few more differnces.
Code Block |
---|
| xml | borderStyle | solid |
---|
title | jboss-web.xml |
---|
borderStyle | solid |
---|
| xml |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<jboss-web>
<!-- EJB Local References -->
<ejb-local-ref>
<ejb-ref-name>ejb/ItemServiceLocal</ejb-ref-name>
<local-jndi-name>ItemService</local-jndi-name>
</ejb-local-ref>
<ejb-local-ref>
<ejb-ref-name>ejb/ShoppingCartLocal</ejb-ref-name>
<local-jndi-name>ShoppingCart</local-jndi-name>
</ejb-local-ref>
</jboss-web>
|
Code Block |
---|
| xml | borderStyle | solid |
---|
title | geronimo-web.xml |
---|
borderStyle | solid |
---|
| xml |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1">
<dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1">
<dep:moduleId>
<dep:groupId>org.apache.geronimo.samples</dep:groupId>
<dep:artifactId>ComputerWeb</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>car</dep:type>
</dep:moduleId>
<dep:dependencies/>
<dep:hidden-classes/>
<dep:non-overridable-classes/>
</dep:environment>
<naming:ejb-local-ref>
<naming:ref-name>ejb/ItemServiceLocal</naming:ref-name>
<naming:ejb-link>ItemService</naming:ejb-link>
</naming:ejb-local-ref>
<naming:ejb-local-ref>
<naming:ref-name>ejb/ShoppingCartLocal</naming:ref-name>
<naming:ejb-link>ShoppingCart</naming:ejb-link>
</naming:ejb-local-ref>
</web-app>
|
...