Tuesday 19 February 2013

How to create JNDI in GlassFish 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.

 




 After 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.






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.



 



No comments:

Post a Comment