Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to create WebLogic Data Source

How to create a WebLogic Data Source 

In this section, we walk through how to create a Generic WebLogic data source in WebLogic Server with some examples.

  • The generic Data source provides database access and connection management to the client code, Java or web app.
  • WebLogic creates a connection pool when the server startup and close the pool when the server shutdown
  • Using the WebLogic data source, you can skip referring the database connection details in the code by lookup the JNDI name

Create a Generic Data Source in WebLogic

1. Login into Weblogic Console. The default URL is http://:/console

2. Click Data Sources under services, Click New and select Generic Data Source

3. Input a Name, Scope as Global, JNDI Name for your code to lookup, and Database Type (Oracle, My SQL, etc.,)

4. Accept the default and click Next

5. Click Next

6. Input your Database connection string

7. Click on the Test Connection button to test the database connection. Click Next

8. Select the servers where you want the data source is available. This step is important; The JNDI is only available on the servers that you are selecting here. Click Finish

9. The created data source will be listed in the Data Sources


Some Examples:

1. Create a Web Service from a Database Table with JNDI Lookup

2. Create a Java class that look up JNDI Data source in WebLogic

This post first appeared on Oracle ADF, BPM, BI And Primavera P6 Tutorials, please read the originial post: here

Share the post

How to create WebLogic Data Source


Subscribe to Oracle Adf, Bpm, Bi And Primavera P6 Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription