The use case is this:
#1 I want to configure all caches from a config XML file
#2 The I want to *override* one or two small aspects, such as the transport

Ideally, I could define #2 in the config file as well, but that changed 
from 6 to 7.

Note that I don't want to switch to programmatic configuration entirely 
just because of #2


On 07/07/14 13:30, Mircea Markus wrote:
>
> On Jul 7, 2014, at 11:52, Sanne Grinovero <[email protected]> wrote:
>
>> On 7 July 2014 11:04, Bela Ban <[email protected]> wrote:
>>> How ? I already have an infinispan.xml, create a CacheManager off of it
>>> and now only want to change the transport.
>>
>> I have the same need; in Palma I asked for a CacheManager constructor
>> which would take
>> (String infinispanConfiguration, Transport customTransportInstance).
>
>        GlobalConfigurationBuilder gc = new GlobalConfigurationBuilder();
>        gc.transport().transport(new JGroupsTransport());
>        DefaultCacheManager dcm = new DefaultCacheManager(gc.build());
>
>
> Cheers,
>

-- 
Bela Ban, JGroups lead (http://www.jgroups.org)
_______________________________________________
infinispan-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/infinispan-dev

Reply via email to