Have you considered using system properties with the jgoups config file?
if jgroups.udp.mcast_addr is defined then its value is used, otherwise it defaults to 184.108.40.206.
See if you can create JGroupsTransport instance with a custom JGroups programmatic channel (http://belaban.blogspot.com/2010/10/programmatic-creation-of-channel.html) and then use that JGroupsTransport instance with TransportConfigurationBuilder. Read a bit first about programmatic configiration. Good luck.
I am also looking for configuring JGroups inside my application instead of specifying an xml. Thanks for the link given by you. I had read the blog and got a pretty good understanding of how to do it.
But my question is How the JChannel created programatically is assigned to DefaultCacheManager of Infinispan?
Have you tried using TransportConfigurationBuilder?
Thank Vladimir for your quick response. I am new to infinispan. I am setting like
From Belabans Blog I am having an Instance of Jchannel with me. Then How I Set this to TransportConfigurationBuilder?