Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Other QoS Timeout Tuning

Other QoS Timeout Tuning

[[QoS tcpTimeout|Back]]

In this article, we will briefly discuss a few other QoS timeout properties which you can use to fine tune the QoS requirement of your Client application.

Relative Connection Timeout

In some circumstances, you may want to limit the amount of time the Client method invocation can spent on establishing a connection to the Server. This duration does not include the amount of time needed to write the Request Message and read the Reply Message. You can achieved this timeout behavior by setting the QoS Relative Connection Timeout Policy.

For VBC++ Client, you can set the Relative Connection Timeout Policy using the property "vbroker.qos.defaultConnectTimeout". For VBJ Client, the equivalent property is "vbroker.orb.qos.connectionTimeout". The timeout value is specified in milliseconds. The default value of 0 means that the Client is given unlimited time to connect to the Server.

If the Client invocation fails to establish a connection to the Server within the specified timeout, then an exception is thrown. This issue may occur when the Server is unreachable due to network congestion/disruption or the Server is protected by a firewall. The Client application logic must catch the exception and handle it gracefully to prevent a crash.

The timeout specified with these two properties sets the RelativeConnectionTimeoutPolicy at the ORB Level policy. This means that all the invocations in the same ORB have the same connection timeout. If some invocations in your Client application need different connection timeout values, you must programmatically set the RelativeConnectionTimeoutPolicy at the Object or Thread Level policy using the appropriate CORBA APIs. The Object Level timeout setting has the highest precedence, followed by the Thread Level, the ORB Level and finally the property level setting has the lowest precedence.

Relative Request Timeout

You can also fine tune the amount of time the Client method invocation is allowed to spend on writing the Request Message to the connection. This duration does not include the amount of time needed to connect to the Server and read the Reply Message. You can achieved this timeout behavior by setting the QoS Relative Request Timeout Policy.

For VBC++ Client, you can set the Relative Request Timeout Policy using the property "vbroker.qos.defaultRRQTimeout". There is no equivalent property for VBJ Client, so you must set VBJ's Request Timeout Policy programmatically. The timeout value is specified in milliseconds. The default value of 0 means that the Client has unlimited time to write the Request Message to the connection.

If Client invocation fails to write the Request Message to the connection within the specified timeout, then an exception is thrown. The delay may be attributed to heavy load, network congestion/disruption which can cause the socket buffer to be full. The Client application logic must catch the exception and handle it gracefully to prevent a crash.

The timeout specified with this property sets the RelativeRequestTimeoutPolicy at the ORB Level policy. This means that all the invocations in the same ORB have the same request timeout. If some invocations in your Client application need different request timeout values, you must programmatically set the RelativeRequestTimeoutPolicy at the Object or Thread Level policy using the appropriate CORBA APIs. The Object Level timeout setting has the highest precedence, followed by the Thread Level, the ORB Level and finally the property level setting has the lowest precedence.

For VBJ, the "vbroker.orb.tcpTimeout" behavior will override/disable the Relative Request Timeout Policy if both type of timeouts are set together. So to avoid confusion, you should not set these two types of timeout policies together.

[[QoS tcpTimeout|Back]]

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Comments

<a href="www.prohomeworkhelp.com">Do My Homework For Me</a>

Types Of Business Writing

[https://www.prohomeworkhelp.com/|myhomework]

[Pro-Homework-Help](www.prohomeworkhelp.com)

"Foo":http://foo.bar

Version history
Revision #:
1 of 1
Last update:
‎2013-08-30 05:52
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.