How to Set Timeout to JNDI Lookup of WebLogic Server (WLS) using InitialContext?
(Doc ID 1052962.1)
Last updated on JUNE 10, 2022
Applies to:Oracle WebLogic Server - Version 9.0 to 10.3.3
Information in this document applies to any platform.
The application does an JNDI lookup on a remote server. If that server is down, the Context.lookup call is not timing out.
The following -D parameters were set and restarted the instance, but it appears that Context does not honor the TCP/IP timeout values. The -D parameters added to the server startup script are as follows:
None of the above parameters helped.
The question is how to set a timeout value for an initialContext.lookup() call so that it will time out if the remote server doesn't respond within a specified period of time?
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document