Friday 13 July 2012

Create Jndi DataSource in WebLogic Server



Step 1:

First you need to start the server, for that open domain location folder that means at the time of creating domain name. Here our domain folder name is satyamsoft in that open bin folder and then double click on the startWeblogic batch file.



 Step 2:


After click on the batch file you can see status of the server in the console. In the end it shows the Running mode.

 

Step 3:

Open browser and then type http://localhost:7001/console. The default port number for WebLogic Administration Server is 7001. 

 

Step 4:

Select the DataSource under the Services->JDBC.

 

Step 5:

Click on the New button.


 


Step 6:

In the next step write give what would you like to name your new JDBC Data Source and in the JNDI Name give What JNDI name would you like to assign to your new JDBC Data source, next select the data base type then click on the Next.



Step 7:

Click on the Next button.



Step 8:

Give the database name what would you like to connect next Host name is localhost, Port is 1521 and then type Database username and password. click on the Next button.



Step 9:

For test click on the Test Configuration button.



Step 10:

Give the database name what would you like to connect next Host name is localhost, Port is 1521 and then type Database username and password. click on the Next button.



After completed you can use the JNDI name in your application for getting Database connection object. By using connection object you can insert,update,delete and retrive the data using database.

 

 

No comments:

Post a Comment