In order to create and configure a dataSource in WebLogic server 11g, you have to follow these few steps:
1- Access to the webLogic console:
2- Select the dataSource menu:
3- Create a new generic dataSource:
4-
give a name and a JNDI name to the dataSource. You should also select
the type of your dataSource. In this exemple, I will use an Oracle
Database.
5- Select your dataBase driver. In my case, I am using an Oracle 10g Database so I will select: Oracle's Driver (Thin) for Instance connecions; Versions 9.0.1 and later.
6- Let the transaction configuration of your dataSource like the following unless you have a specific need.
7- Configure your connection to the database
8- Test your configuration
9- select the target where your dataSource will be deployed.