Thanks Kevan, this works beautifully -- both relative and explicit locations !!

On 6/17/2010 3:29 PM, Kevan Miller wrote:

On Jun 17, 2010, at 2:40 PM, Tim McConnell wrote:

Hi, I'd like to configure and use the Geronimo embedded Derby database
outside the default \var\derby directory, and actually outside the
Geronimo installation directory. Does anyone know if this is possible ?? If so 
has anyone done this ??

I've never tried this, but you can override the default 'derbySystemHome' 
attribute on the DerbySystem GBean. Find the system-database module in 
config.xml and make it something like:

     <module name="org.apache.geronimo.configs/system-database/2.1.5/car">
         <gbean name="DerbyNetwork">
             <attribute name="host">${ServerHostname}</attribute>
             <attribute name="port">${DerbyPort + PortOffset}</attribute>
         </gbean>
         <gbean name="DerbySystem">
           <attribute name="derbySystemHome">var/derby</attribute>
         </gbean>
     </module>

I would assume that derbySystemHome can be configured to an explicit location, 
rather than a relative location...

--kevan


--
Thanks,
Tim McConnell

Reply via email to