[infinispan-dev] Flexible configuration

Vladimir Blagojevic vblagoje at redhat.com
Wed Nov 10 06:22:43 EST 2010


I'd say follow XML loader/store configuration pattern. See jdbc loader for example. I don't think special property as you suggest would be supported by the current mechanism. 
Cheers
On 2010-11-10, at 4:38 AM, Tristan Tarrant wrote:

> Hi all,
> 
> the CassandraCacheStore uses my cassandra-connection-pool library. This library provides a lot of configuration settings which I would like to people to be able to set via the infinispan XML configuration, but without adding a setter for each one on the CassandraCacheStoreConfig class which would just proxy the underlying pool properties ? I was thinking along the lines of a special property "poolConfiguration" which would then be a property file in disguise. Here is an example of what I mean:
> 
> <properties>
> <property name="host" value="myhost" />
> <property name="poolConfiguration">
> automaticHostDiscovery=true
> socketTimeout=10000
> </property>
> </properties>
> 
> Thanks for any suggestions.
> 
> Tristan
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev





More information about the infinispan-dev mailing list