Copy the JDBC driver for database connectivity to as-install/domains/domain_name/lib/ext. Alternatively, add the path to the JDBC driver to classpath-prefix and restart the server.
In the Admin Console, click Create JDBC Connection Pool in the Common Tasks page.
Provide a name for the connection pool, select the resource type, select the database vendor. Click Next.
The Admin Console lists the default pool settings and the properties of datasource class provided by the vendor.
Click the Ping button to test the JDBC connection pool.
In the left-hand pane of the Admin Console, click Resources > JDBC Resources.
In the New JDBC Resource page, provide the JNDI name for the resource and the JDBC comnnection pool with which the JDBC resource needs to be associated.