Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

<geronimo_home> is the directory where you installed Geronimo. It seems that bin, lib and schema are read-only, and thus may be shared between instances.  It turns out that the The disk space taken up by a typical vanilla freshly installed Geronimo instance is equally split between var and repository at almost 50 MB each, with the rest being noise.  Most of var is 40 MB of ActiveMQ journal files. This motivates the idea of a second repository, in particular, one for each server instance.

In addition to a simple read/write partition of capabilities, security may well come into play as we access permissions on a set of directories.  Each server instance should be able to read or write only its var directory, for instance.

...

First, we consider the case single server instance case, and just add a second repository.  Say we want to leave Geronimo in its repository, but add a second repository to deploy our applications. Adding a second repository is pretty easy. 1.     Create a plan (say repo2.xml) for your repository module.

Code Block
xml
xml
borderStylesolid
titlefile_name

<module xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">

...

  <environment>

    <moduleId>

...



&nbsp; <environment>

&nbsp;&nbsp;&nbsp; <moduleId>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <groupId>org.example.configs</groupId>

...

     <artifactId>myrepo</artifactId>

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<artifactId>myrepo</artifactId>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<version>2.0-SNAPSHOT</version>

...

      <type>car</type>

    </moduleId>

    <dependencies>

      <dependency>

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <type>car</type>

&nbsp;&nbsp;&nbsp; </moduleId>

&nbsp;&nbsp;&nbsp; <dependencies>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <dependency>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<groupId>org.apache.geronimo.configs</groupId>

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <artifactId>j2ee-system</artifactId>

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<version>2.0-SNAPSHOT</version>

...

        <type>car</type>

      </dependency>

    </dependencies>

    <hidden-classes/>

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <type>car</type>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </dependency>

&nbsp;&nbsp;&nbsp; </dependencies>

&nbsp;&nbsp;&nbsp; <hidden-classes/>

&nbsp;&nbsp;&nbsp; <non-overridable-classes/>

...



&nbsp; </environment>

...



&nbsp; <\!--Repository-

...

->

&nbsp; <gbean name="Repo2" class="org.apache.geronimo.system.repository.Maven2Repository">

...



<attribute name="root">repo2/</attribute>

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <reference name="ServerInfo">

...



<name>ServerInfo</name>

...



</reference>

...



&nbsp; </gbean>

...



&nbsp; <\!--Configuration Store service-->

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <gbean name="Local2" class="org.apache.geronimo.system.configuration.RepositoryConfigurationStore">

...



&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <reference name="Repository">

...



<name>Repo2</name>

...



</reference>

...



</gbean>

...



</module>

2.     Create the repository's root directory. 

...