添加链接
link之家
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

To return expected results, you can:

  • Reduce the number of search terms. Each term you use focuses the search further.
  • Check your spelling. A single misspelled or incorrectly typed term can change your result.
  • Try substituting synonyms for your original terms. For example, instead of searching for "java classes", try "java training"
  • Did you search for an IBM acquired or sold product ? If so, follow the appropriate link below to find the content you need.
  • Resolving The Problem

    IBM Toolbox for Java uses the default socket send-receive timeout values for the platform it is running on. These values can lead to long delays if an unexpected network error occurs. For example, the default send timeout is typically around 12 minutes, and the default receive timeout is typically infinite.
    There are a few ways to change the default receive timeout. In all cases, the value is set by using a milliseconds value, and 0 indicates no timeout.
    Login timeout
    The toolbox supports the use of a login timeout value. This value determines how long the toolbox waits for a new socket to one of the host servers to be established. The timeout can be set by using one of the following techniques:
  • Calling the DriverManager "setLoginTimeout" method.
  • Calling the AS400JDBCDataSource "setLoginTimeout" method.
  • Setting the "login timeout" property of a JDBC connection.
  • Calling the "setLoginTimeout" method on a SocketProperties object, and then calling "setSocketProperties" on an AS400 object.
  • Receive timeout
    The toolbox also supports setting the default receive timeout value; it determines how long the toolbox blocks on a read operation while waiting for a server response. This can be set by using one of the following methods:
  • Calling the AS400JDBCDataSource "setSocketTimeout" method.
  • Setting the "socket timeout" property of a JDBC connection.
  • Calling the "setSoTimeout" method on a SocketProperties object, and then calling "setSocketProperties" on an AS400 object.
  • Note these values affect only the receive timeout, and not the send timeout of the socket object.
    CAUTION: The receive timeout is used only if the "thread used" property of the connection is set to false. By default, the toolbox creates a thread that is always blocked on a socket read waiting for a server response. A connection that is idle longer than the receive timeout, drops the connection. The "setThreadUsed" property can be set by using one of the following methods:
  • Calling the AS400JDBCDataSource "setThreadUsed" method.
  • Setting the "thread used" property of a JDBC connection.
  • Calling the "setThreadUsed" method of an AS400 object.
  •