Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set JacOrb connection time out

 
Meir Yan
Ranch Hand
Posts: 599
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic