Home > Documentation > Reference > Geronimo Architecture > Geronimo directory structure > var directory > config.xml |
Although many configuration changes can be made safely and easily with the administrative console, quick configuration changes can be made to your server by stopping the server, editing config.xml and then restarting the server. This file can be found in <Geronimo_HOME>/var/config/config.xml
, where <Geronimo_HOME> is the directory where the server was installed.
When your server is installed, the initial configuration includes a number of modules pre-configured to get you started.
If a configuration change is limited to changing an attribute value in an existing <attribute> element in config.xml, you can make the change by stopping the server, editing config.xml, and then restarting the server. Although disruptive, the server only examines config.xml during initialization, so the server must be restarted to make the changes effective.
Note: You must always stop the server before changing config.xml. Any changes made to config.xml while the server is running will be lost. When the server stops, it writes a new copy of config.xml so it contains any configuration changes made while the server was running.
If the configuration changes you need to make are limited to changing attribute values for a GBean that has already been deployed to your server, follow this procedure.
<module name="moduleName"> <gbean name="beanName"> <attribute name="name">value</attribute> . . . </gbean> . . . </module>
Although the Geronimo structure permits you to add additional <attribute> elements and even additional <gbean> elements for different modules to config.xml in order to customize your server configuration, these tasks may require expert knowledge of the Geronimo architecture, the deployment plans used to build the server, and even the Java source for the GBean itself. Typical administrators should not attempt to add elements to config.xml unless instructed by a service agent or explicit documentation.
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2011, The Apache Software Foundation, Licensed under ASL 2.0. |