Skip to main content

VBJ - How to close the client connection programmatically

  • February 16, 2013
  • 0 replies
  • 0 views

Problem:

  • Product Name: VisiBroker for Java
  • Product Version: 6.x
  • Product Component: ORB, Communication
  • Platform/OS Version: All

Is there a method to call to close the client side connection programmatically?
Or, is there a property that we can use to achieve this?

Resolution:

There is no method to close the client side connection programmatically as the connection is managed internally by the ORB. However, the application can manage the connection resources by setting the properties "vbroker.ce.iiop.ccm.connectionMaxIdle" and "vbroker.orb.gcTimeout" to a smaller value to close any idle connections in a shorter time frame.

Nevetheless, for VisiBroker on C , there is a method called "release_idle_connections" to achieve such a requirement. Please refer to the KB article [[knowledge_base: How can idle connections be forced to close, without depending on whether there are client side object references bound to a connection?]] and also refer to the wiki article [[wiki: Other Connection Tuning]] for more details.
 


#VisiBroker
#Security