Pages

Tuesday, June 29, 2010

Glassfish v2( JDBC Connection Pool, JNDI)

Step 1:
Place database driver in glassfish lib dir. (e.g. lib/mysql-jdbc-5.1.11.jar) and restart server.

Step 2:
Login to Admin Console: http:\\localhost:4848\
Goto Resource > JDBC > Connection Pool
Provide Name, Select Database vendor and Select Resource Type

Step 3:
Enter DataSource class name (Database driver)
Change other settings as you want

Save and Ping
:) "Ping Succeed"

Connection Pool is ready
Google
 

Java-Struts