But where do I pass in my infinispan.xml config file ? I don't want a
pure programtic configuration
On 07/07/14 13:30, Mircea Markus wrote:
On Jul 7, 2014, at 11:52, Sanne Grinovero <sanne(a)infinispan.org> wrote:
> On 7 July 2014 11:04, Bela Ban <bban(a)redhat.com> 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)