-
1. Re: How can we avoid jgroups.xml for configuring Infinispan Cluster?
shineedbasheer Jan 12, 2013 2:05 AM (in response to shineedbasheer)I go a solution for this
Step 1: Created TransportConfigurationDataObject which internally holds all the attributes in jgroups.xml.
TransportConfigurationDO which has attibutes following DO attibutes
FdConfiguration dataGridFdConfigurationDO
FdSockConfiguration dataGridFdSockConfigurationDO
FragConfiguration dataGridFragConfigurationDO
MergeConfiguration dataGridMergeConfigurationDO
MfcConfiguration dataGridMfcConfigurationDO
PbCastGmsConfiguration dataGridPbCastGmsConfigurationDO
PbCastNakackConfiguration dataGridPbCastNakackConfigurationDO
PbCastStableConfiguration dataGridPbCastStableConfigurationDO
RsvpConfiguration dataGridRsvpConfigurationDO
TcpConfiguration dataGridTcpConfigurationDO
TcpPingConfiguration dataGridTcpPingConfigurationDO
UfcConfiguration dataGridUfcConfigurationDO
UnicastConfiguration dataGridUnicastConfigurationDO
VerifySuspectConfiguration dataGridVerifySuspectConfigurationDO
Step 2: Created class with logic to build transport xml string from above created DO
Step 3: set this string to tansportConfigurationBuilder as follows
transportConfigurationBuilder.addProperty("configurationXml", xmlString);
NB: please note the key used, its not "configuration" its configurationXML
This apporached worked for me. Kindly update if you have better solution than this.