File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes how to set JacOrb connection time out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "how to set JacOrb connection time out " Watch "how to set JacOrb connection time out " New topic
Author

how to set JacOrb connection time out

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
im using jacOrb as my client orb to some times when the server or network are idle
I have no way to know because the connection is stock . and I have no timeout error
where can I define in jacOrb the connection timeouts?
Thanks
Nidhi Garg
Greenhorn

Joined: Jun 19, 2009
Posts: 21
You can set that in jacorb.properties file.
Ensure that the property jacorb.connection.client.idle_timeout is uncommented, and set this property to a value between 5000 and 30000 milliseconds
Nidhi Garg
Greenhorn

Joined: Jun 19, 2009
Posts: 21
See below for properties that needs to be set in jacorb.properties file for connection timeout


# Wait the specified number of msecs for a reply to a request. If
# exceeded, a org.omg.CORBA.IMP_LIMIT exception will be thrown
#jacorb.client.pending_reply_timeout=0

# client-side connection idle timeout, set no non-zero to stop
# blocking after so many msecs.
#
# WARNING: This is independent of pending replies, i.e. the connection
# can also close, if the timeout is exceeded, but there are unanswered
# requests.
#jacorb.connection.client_idle_timeout=0

# max time a server keeps a connection open if nothing happens
#
# WARNING: This is independent of the requests currently being
# processed, i.e. the connection can also close, if the timeout is
# exceeded, but there are unanswered requests.
#
#jacorb.connection.server_timeout=10000
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to set JacOrb connection time out