How to create a JDBC Resource using JDBC Connection Pool
In the previous post I have created an Oracle JDBC Connection Pool using Glassfish 3.1 and in this post I will show you how to add JDBC Connection Pool into JDBC Resource.
2) Click on the “New” button to add a new JDBC resource. In the resulting form, type in MyJDBCResource for JNDI Name. For the Pool Name, select myPool. Leave the rest as default and click OK.
Now your JDBC Resource is ready to use into your web application.
1) On the left pane, click on Resources → JDBC → JDBC Resources
2) Click on the “New” button to add a new JDBC resource. In the resulting form, type in MyJDBCResource for JNDI Name. For the Pool Name, select myPool. Leave the rest as default and click OK.
3) You should see that your resource has created.
Now your JDBC Resource is ready to use into your web application.
Comments
Post a Comment