[infinispan-dev] A question and an observation
Mircea Markus
mmarkus at redhat.com
Mon Jul 7 07:30:42 EDT 2014
On Jul 7, 2014, at 11:52, Sanne Grinovero <sanne at infinispan.org> wrote:
> On 7 July 2014 11:04, Bela Ban <bban at 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,
--
Mircea Markus
Infinispan lead (www.infinispan.org)
More information about the infinispan-dev
mailing list