Product: OpenFusion Notification Service
Version: ALL
Description:
How to change the QoS properties at runtime?
Resolution:
The QoS settings can be changed at runtime by using the set_qos() method on the channel, proxy or admin that you want to change the QoS properties for. For example:
Property newQos = new Property[2];
newQos[0] = new Property ();
newQos[0].name = ReconnectInterval.value;
newQoS[0].value = orb.create_any ();
newQoS[0].value.insert_ulonglong((long) 100000000000);
Property newQos[1] = new Property ();
newQos[1].name = MaxReconnectAttempts.value;
newQoS[1].value = orb.create_any ();
newQoS[1].value.insert_long(10);
try
{
channel.set_qos(newQos);
}
catch (UnsupportedQos ex)
{
}
Remember, if you set QoS on an admin, proxies already obtained from that admin will not inherit the changed settings. Only ones obtained afterwards will. The same applies to the channel, if you change the QoS on the channel after it has been created the default admins will not inherit the changed settings.
#KnowledgeDocs
#OpenFusion