Re: [javagroups-users] Programatically Change Protocol attributes
Brought to you by:
belaban
From: Bela B. <be...@ya...> - 2012-03-30 06:53:15
|
On 3/29/12 9:29 PM, Ioannis Latousakis wrote: > > I am using TCPGossip protocol. How can I programatically change the TCP bind address/ port and the GR address/port ? You can call the managed operations removeInitialHost() or addInitialHost(). Or you can get the initial_hosts list via getInitialHosts() or set it directly via setInitialHosts(). After that, you'd have to call stop(), destroy() and start() again to activate that. > Also, is it ok to use the default protocol that came with JGroups? I haven't changed anything other than the IPs / ports and its working. That's what I recommend > Are there any ready TCPGossip.xml that are recommended ? The tcpgossip.xml that's shipped with JGroups is recommended -- Bela Ban, JGroups lead (http://www.jgroups.org) |