21 WebLogic Server Foreign JNDI Providers
Note:
If you are logged into a domain partition, navigate from the Domain Partition menu. Note that WebLogic Server Multitenant domain partitions, resource groups, resource group templates, and virtual targets are deprecated in WebLogic Server 12.2.1.4.0 and will be removed in the next release.
This chapter includes the following sections:
Create foreign JNDI providers
To create a new foreign JNDI provider:
General Configuration
On the General Configuration page, you can define general configuration settings for your new foreign JNDI provider:
-
Name: enter a name for the foreign JNDI provider.
-
Scope: select the scope for this foreign JNDI provider.
-
Initial Context Factory: enter the name of the class that must be instantiated to access the JNDI provider. This class name depends on the JNDI provider and the vendor that are being used. The value corresponds to the standard JNDI property,
java.naming.factory.initial
. -
Provider URL: enter the URL that WebLogic Server will use to contact the JNDI provider. This value corresponds to the standard JNDI property,
java.naming.provider.url
. -
User: enter the name of a user authorized to access the foreign JNDI.
-
Password: enter the user password.
-
Confirm Password: confirm the user password.
-
Properties: click Add to specify any additional properties that must be set for the JNDI provider. These properties will be passed directly to the constructor for the JNDI provider's
InitialContext
class. Express each property as aname=value
pair, separated by commas.
For more information about these fields, see Configuration Options.
Targets
On the Targets page, select the server instances and clusters on which you want to target the new foreign JNDI provider.
Monitor foreign JNDI providers
To monitor the foreign JNDI providers configured in the domain:
Optionally, select View to access the following table options:
-
Columns: add or remove the columns displayed in the table
-
Detach: detach the table (viewing option)
-
Sort: sort the columns in ascending or descending order
-
Reorder: change the order of the columns displayed
-
Query by Example
Configure foreign JNDI providers
A foreign JNDI provider represents a JNDI tree that resides outside of a WebLogic Server environment. This could be a JNDI tree in a different server environment or within an external Java program. By setting up a foreign JNDI provider you can lookup and use a remote object with the same ease as using an object bound in your WebLogic Server instance. In other words, you can access local and remote objects using a single WebLogic Server connection.
This section includes the following tasks:
Configure foreign JNDI provider general settings
To configure general settings for a specific foreign JNDI provider:
Configure foreign JNDI object links
A foreign JNDI object link represents a local link to an object in a foreign (remote) JNDI tree. After you create a foreign JNDI provider you can add foreign JNDI links that set up a relationship between a name in your local JNDI tree and the object in the remote tree.
To configure foreign JNDI object links:
Create foreign JNDI object links
To create object links to a foreign JNDI provider:
General Configuration
On the General Configuration page, you can define general configuration settings for your new foreign JNDI object link
-
Name: enter a name for the foreign JNDI link.
-
Local JNDI Name: specify the name that the remote JNDI object will be bound to in the local server's JNDI tree and used to look up the object on the local server.
-
Remote JNDI Name: specify the name of the remote object that will be looked up in the foreign JNDI directory.
For more information about these fields, see Configuration Options.
Configure a foreign JNDI object link
A foreign JNDI object link represents a local link to an object in a foreign (remote) JNDI tree. After you create a foreign JNDI provider you can add foreign JNDI links that set up a relationship between a name in your local JNDI tree and the object in the remote tree.
This section includes the following tasks:
Configure foreign JNDI link general settings
To configure general settings for a foreign JNDI object link: