geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jklcom99 <jeff_k...@yahoo.com>
Subject Re: Changing application calsspath to include directory
Date Wed, 17 Sep 2008 21:04:08 GMT

How to create the config file?  Can you show me an example?


ammulder wrote:
> 
> I'm not sure you can do this in 1.0.  In 1.1, each EAR could deploy a
> private copy of the SharedLib GBean and point it to the directory you
> want to add as part of its "classesDirs" property (which can be one
> dir or a comma-separated list of dirs).
> 
> <gbean name="MyApp1SharedLib"
>     class="org.apache.geronimo.system.sharedlib.SharedLib">
>     <attribute name="classesDirs">/path/to/properties/dir</attribute>
>     <reference name="ServerInfo">
>         <name>ServerInfo</name>
>     </reference>
> </gbean>
> 
> Still, the more portable solution would be to put the config files in
> a JAR and put the JAR on the classpath somehow (e.g. add it to an EJB
> JAR's Manifest Class-Path or put it in a WAR's WEB-INF/lib).
> 
> Thanks,
>     Aaron
> 
> On 6/8/06, paul.newport@targetgroup.net <paul.newport@targetgroup.net>
> wrote:
>>
>> Hi
>>
>> I have an EAR I want to deploy multiple times, each time with a different
>> classpath. The reason for this is I want test and live versions, and in
>> each
>> case the application loads a property file from the classpath to
>> configure
>> things like database server names, web service endpoints and so on.
>>
>> I have read the documentation about how to add jars in at deployment time
>> via entries in geronimo-application.xml, but I don't want to add jars, I
>> want to add directories.
>>
>> Can anyone help ?
>>
>> Target
>>
>> www.targetgroup.net
>>
>>
>>
>> **********************************************************************
>>
>> DISCLAIMER.
>>
>> This message is intended only for the use of the Addressee and may
>>
>> contain information that is PRIVILEGED and CONFIDENTIAL.
>>
>> If you are not the intended recipient you must not copy,
>>
>> distribute or take any action or reliance upon it.
>>
>> The content of this message may also contain personal
>>
>> views of an employee of this company and does
>>
>> not necessarily represent the view of the company.
>>
>> **********************************************************************
>>
>> This message has been scanned by Norton Anti-Virus.
>>
>> It has also been scanned by MAILsweeper to enforce our e-mail
>>
>> policy. If you have any concerns or comments about the content
>>
>> of this message, please e-mail support@targetgroup.net.
>>
>> **********************************************************************
>> _____________________________________________________________________
>>  This email has been scanned for all viruses by the MessageLabs Email
>>  Security System. For more information on a proactive email security
>>  service working around the clock, around the globe, visit
>>  http://www.messagelabs.com
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Changing-application-calsspath-to-include-directory-tp4770139s134p19541064.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Mime
View raw message