HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

111 Java web application using JDBC Connection pool for Oracle, in Glassfish server Servlet Tutorial

781 views November 12, 2019 31:54

Watch on YouTube
Channeltech fort

Description from the creator

Procedure to make #java #web #application #using #JDBC #Connection #pool(pool1) for #Oracle #database, created in #Glassfish #mydomain2 #server: Advance Java #Servlet #Tutorial
Step 1) make sure that mydomain2 server of Glassfish is there in running mode.

Step 2) Keep web appl ready

Deployment Directory Structure:
35GFPoolApp
-------
|-----index.html
|-----WEB-INF
|--------web.xml
|--------classes
|--------ConnPoolServlet.java
|--------ConnPoolServlet.class

for above web appplication Source code Refer 109 Servlet to Database communication using Approach 3 Connection Pool with Oracle, Weblogic

Step 3) Change JNDI name from "techfort" to "GFOraCP"

Step 4) Compile Servlet program & need to prepare .war file representing the whole web application

compile

Create war file
C:\Users\om\Desktop\35GFPoolApp jar cf 35GFPoolApp.war .

Step 5) Deploy above created web application in mydomain2 server of GlassFish

hard deployment: (copy and paste war file to mydomain2\autodeploy directory)
C:\glassfish3\glassfish\domains\mydomain2\autodeploy


Step 6) Test the web application

localhost:6060/35GFPoolApp/ (i have changed HTTP port number 8080 to 6060 in tutorial number 105)

localhost:8080/35GFPoolApp/ (By defult port number is 8080)

About this tutorial

tech fort published this 31:54 video tutorial on November 12, 2019. It has been watched 781 times on YouTube.

Channel
tech fort
Duration
31:54
Published
November 12, 2019
Views
781
Likes
32

Tags

Share

This tutorial in other languages