-
1. Re: Programmatic configuration of jgroups
mircea.markus Oct 2, 2012 1:35 PM (in response to pgostovic)Have you considered using system properties with the jgoups config file?
e.g.
<UDP
mcast_addr="${jgroups.udp.mcast_addr:228.6.7.8}"
if jgroups.udp.mcast_addr is defined then its value is used, otherwise it defaults to 228.6.7.8.
-
2. Re: Programmatic configuration of jgroups
vblagojevic Oct 2, 2012 6:38 PM (in response to pgostovic)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.
Cheers,
Vladimir
-
3. Re: Programmatic configuration of jgroups
shineedbasheer Oct 17, 2012 4:51 AM (in response to vblagojevic)Hi,
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?
-
4. Re: Programmatic configuration of jgroups
vblagojevic Oct 17, 2012 2:39 PM (in response to shineedbasheer)Have you tried using TransportConfigurationBuilder?
-
5. Re: Programmatic configuration of jgroups
shineedbasheer Oct 18, 2012 4:38 AM (in response to vblagojevic)Thank Vladimir for your quick response. I am new to infinispan. I am setting like
GlobalConfigurationBuilder.defaultClusteredBuilder()
.transport().addProperty(
"configurationFile"
,
"jgroups.xml"
)
.build(),
From Belabans Blog I am having an Instance of Jchannel with me. Then How I Set this to TransportConfigurationBuilder?
-
6. Re: Programmatic configuration of jgroups
shineedbasheer Jan 12, 2013 5:35 AM (in response to shineedbasheer)I got a solution for this
https://webmail.suntecsbs.com/exchweb/bin/redir.asp?URL=https://community.jboss.org/thread/211718