on 2/5/01 1:26 PM, "William Lee" <[EMAIL PROTECTED]> wrote:

> I would like to have a separate properties file than the default Turbine
> one.  What is the most correct way to do this using the TurbineResources
> class?
> 
> Thanks,
> 
> Will

Raphael answered the question well. You can also use TurbineResources on
your own (even outside of general Turbine) by simply doing something like
this:

TurbineConfig tc = new TurbineConfig("/basepath", "My.properties");
tc.init();

Then, you can call from anywhere in your code:

String propvalue = TurbineResources.getString("yourproperty");

Note that that will start up two base services, the ResourceService and the
LoggingService with their default values which may or may not be preferable
to you.

thanks,

-jon



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to