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

How to create WebLogic Data Source

031517_0146_Howtocreate9 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

031517_0146_Howtocreate1 How to create WebLogic Data Source

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

031517_0146_Howtocreate2 How to create WebLogic Data Source

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

031517_0146_Howtocreate3 How to create WebLogic Data Source

4. Accept the default and click Next

031517_0146_Howtocreate4 How to create WebLogic Data Source

5. Click Next

031517_0146_Howtocreate5 How to create WebLogic Data Source

6. Input your Database connection string

031517_0146_Howtocreate6 How to create WebLogic Data Source

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

031517_0146_Howtocreate7 How to create WebLogic Data Source

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

031517_0146_Howtocreate8 How to create WebLogic Data Source

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

031517_0146_Howtocreate9 How to create WebLogic Data Source

 

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

×