geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Geronimo configuration question
Date Tue, 25 Oct 2005 18:57:22 GMT

On Oct 25, 2005, at 5:46 AM, Vincent Massol wrote:

> Hi,
>
> I'd like to add support for Geronimo in Cargo 
> (http://cargo.codehaus.org).
> For that I need to understand how to configure Geronimo.
>
> In cargo we have 2 notions:
>
> - Standalone Configuration: This allows the user to tell where he'd 
> like the
> container to be configured and a default working configuration is 
> created
> for him/her at that location.
>
> - Existing Configuration: The user points to an already defined
> configuration on his hard disk and Cargo uses it.
>
> I'd like to understand if it's possible to create a Standalone 
> Configuration
> of Geronimo. To give you some examples for other containers:
>
> - On Tomcat, this means creating a directory containing the following
> structure and then defining the catalina.home and cataline.base system
> properties:
>
> Mytomcatconfig/
>   |_ conf/
>     |_ server.xml
>     |_ tomcat-users.xml
>     |_ web.xml
>
> - On WebLogic, this means creating an admin domain configuration 
> directory
> structure
>
> - On JBoss this means creating a JBoss server configuration directory
> structure
>
> - etc.
>
> It's actually of defining a base installation directory for the 
> container
> and then separate the configuration from it. This allows leaving the 
> default
> installation untouched.
>
> It also allows for example to run several instances of the same 
> container on
> the same machine, all sharing the same base installation but having
> different configurations.
>
> Is that possible? How would I do that?
>

We have a maven plugin to do this.  See the unpackServer goal in  
plugins/geronimo-deployment-plugin/plugin.jelly.

I'm not sure what your goal is with the sharing idea.  Could you 
explain?

Pretty much all the "per-server configuration" is now contained in 
var/config/config.xml (although the name of this file can be variable). 
  This contains the list of configurations to be started and override 
values for gbean attributes.  The name of the file to use is currently 
in a gbean attribute in the jar you start (server.jar, client.jar, 
deployer.jar).  I've been planning to add a command line option to 
specify an alternate configuration file.  Would this satisfy your needs 
for multiple "instances"?

thanks
david jencks


Mime
View raw message