7 Configure JNDI name for HTTP Listener

The following section details the steps to be followed to configure JNDI name for HTTP listener.

Below steps are for configuring a JNDI reference via a property map in WebLogic ensuring that any resource using this map with the specified key will access the JDBC DataSource bound at the indicated JNDI location. This approach facilitates decoupling application code from explicit resource names or connection details.

7.1 Configuring JNDI name for HTTP Listener

  1. Click WebLogic Domain on the right panel. Select Security > Credentials.

    Figure 7-1 JNDI for HTTP Listener 1



  2. Click Credentials.
    The following window is displayed.

    Figure 7-2 JNDI for HTTP Listener 2



  3. Click Create Map.
    The following window is displayed.

    Figure 7-3 JNDI for HTTP Listener 3



  4. Enter Map name as ofsll.http.listener.jndi.
  5. Click OK.
    The following window is displayed.

    Figure 7-4 JNDI for HTTP Listener 4



  6. Click Create Key Button.
    The following window is displayed.

    Figure 7-5 JNDI for HTTP Listener 5



  7. Enter the followng details as per your requirement.
    • Key: jndiname
    • Credential: java:comp/env/jdbc/ofsllDBConnDS
    • Type:Generic

    Figure 7-6 JNDI for HTTP Listener 6



  8. Click OK.
    The following window is displayed.

    Figure 7-7 JNDI for HTTP Listener 7