jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niall Gallagher <ni...@switchfire.com>
Subject Re: Configuring JCS with your own properties
Date Wed, 27 Feb 2008 17:58:35 GMT
Hi Graham,

We use this code like this to configure JCS from a Properties object...

public static void configureJCSFromProperties(Properties props) {
    CompositeCacheManager ccm =

How you get or create a propeties object is up to you. You could
initialise one from a FileInputStream for example.

On Wed, 2008-02-27 at 19:52 +0200, Graham Leggett wrote:
> Tim Cronin wrote:
> > you don't need to have your config in a jar the file just needs to
> > be on the path.
> That won't work for us - we need to explicitly say where the config file is.
> >> but there is no clear way from there to arrive at a JCS object.
> > 
> > you use the JCS object as you would normally do post config of  the
> > composite cache manager
> So if I am understanding this correctly, the CompositeCacheManager 
> object is a singleton, and if I configure the CompositeCacheManager 
> before I instantiate the JCS object, it should be configured correctly?
> Regards,
> Graham
> --

To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org

View raw message