In this article will see how to "Configure JNDI DataSource for Oracle in GlassFish 3.2 Server".
Login to Glassfish admin console in browser window, Once its open, in the left-hand side panel under Resources, click on JDBC and then JDBC Connection Pools. In the right hand-side click on new button will open the "New JDBC Connection Pool" window, enter the details as shown in below image.
Note: To store, organize, and retrieve data, most applications use relational databases. Java EE applications access relational databases through the JDBC API. Before an application can access a database, it must get a connection. JDBC resources provide applications with a means to connect to a database.
Clicking on Next button will display as shown in below image.
In same "New JDBC Connection Pool" window, in Additional Property section add the properties details as shown in below image.
Click on ping to test if the pool is created successfully. If not successful, check all the properties again.
Now under Resources, click on JDBC and then JDBC Resources. In the right hand-side click on new button will open the "New JDBC Resource" window, enter the details as shown in below image.
Login to Glassfish admin console in browser window, Once its open, in the left-hand side panel under Resources, click on JDBC and then JDBC Connection Pools. In the right hand-side click on new button will open the "New JDBC Connection Pool" window, enter the details as shown in below image.
Clicking on Next button will display as shown in below image.
In same "New JDBC Connection Pool" window, in Additional Property section add the properties details as shown in below image.
Click on ping to test if the pool is created successfully. If not successful, check all the properties again.
Now under Resources, click on JDBC and then JDBC Resources. In the right hand-side click on new button will open the "New JDBC Resource" window, enter the details as shown in below image.



