Hi Araon,
I did it this way:
CompositeCacheManager cacheMgr = CompositeCacheManager.getUnconfiguredInstance();
Properties props = new Properties();
InputStream is = ConfigurationHelper.getConfigFile(CACHE_CONFIG_FILE);
props.load( is );
String lateralServers = props.getProperty("jcs.auxiliary.LTCP.attributes.TcpServers");
[...] // fix and save attribute
cacheMgr.configure(props);
cache = JCS.getInstance("myCache");
and it works!
Thanks, Florian.
Aaron Smuts wrote:
One way is to load up the JCS props file, modify the values and then initialize JCS.
--- Florian Hawlitzek <[EMAIL PROTECTED]>
wrote:
Hi,
I've the same problem with the identical
configuration file in the war file throughout several servers
as some of the other folks here.
I would like to write the suggested servlet to set
jcs.auxiliary.LTCP.attributes.TcpServers
individually at each server.
But how can I access this attribute from within my servlet?
Thanks,
Florian Hawlitzek.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
