My Oracle Support Banner

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.

Symptoms

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?

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.