What is a JNDI DataSource?

What is a JNDI DataSource?

A JNDI DataSource object is a file that contains the configuration details necessary to connect to a database. The DataSource object must be registered on a JNDI server, where it is identified using a JNDI name. You can register your DataSource object directly on your application server via its JNDI service.

What is the use of JNDI in WebLogic?

The intent of WebLogic JNDI is to provide a naming service for Java EE services, specifically EJB, RMI, and Java Messaging Service (JMS). Therefore, it is important to understand the implications of binding an object to the JNDI tree in a clustered environment.

What is DataSource in WebLogic?

In WebLogic Server, you configure database connectivity by adding data sources to your WebLogic domain. WebLogic JDBC data sources provide database access and database connection management. Each data source contains a pool of database connections that are created when the data source is created and at server startup.

Where is JNDI tree in WebLogic?

To View the JNDI Tree Structure

  1. Expand Environment from the Domain tree structure on the left panel of the console.
  2. Select Servers from the tree structure.
  3. Click on exampleServer(admin).
  4. Click on View JNDI Tree to open the JNDI Tree window.
  5. Click on Examples, select Deployments, and click on EJB.

How do I restart datasource in WebLogic?

To restart a data source using the Administration Console:

  1. In the Change Center of the Administration Console, click Lock & Edit.
  2. In the Domain Structure tree, expand Services > JDBC and select Data Sources.
  3. Select the name of the data source that you want to restart and select the Targets tab.

How to configure JDBC data sources in WebLogic Server?

In WebLogic Server, you configure database connectivity by adding data sources to your WebLogic domain. WebLogic JDBC data sources provide database access and database connection management. Each data source contains a pool of database connections that are created when the data source is created and at server startup.

How to create a JDBC data source in JNDI?

In the left panel, under Domain Structure, expand Services and select Data Sources. On the Summary of JDBC Data Sources page, click New and select Generic Data Source . Enter the Name of the data source as myNewDS . Enter the JNDI Name of the data source as myNewDS.

What do you need to know about WebLogic JNDI?

The WebLogic Server implementation of JNDI supplies methods that: Each WebLogic Server cluster is supported by a replicated cluster-wide JNDI tree that provides access to both replicated and pinned RMI and EJB objects.

How does WebLogic Server create a connection pool?

When that server starts, or when the data source is deployed, WebLogic Server creates database connections for the data source connection pool. This tutorial shows you how to use the Oracle WebLogic Server 12 c (12.1.3) administration console to create a data source and its connection pool. The connections are to an Oracle database.

Back To Top