Experience the real struts development (2 issues)

zhaozj2021-02-17  90

Experience the true Struts development (Issue 2)

Yang Hengxian (yanghx@70345.com)

The last article tells the test Hibernate operational database, today we use Struts to make a web instance with Hibernate.

Engineering card

date

2004-3-20 21:00

the work

Environmental configuration and its test

Executor

Yang Hengxian

Time (estimate)

2 hours

task list:

l Configure Tomcat connection pool

l Struts and Hibernate make a landing instance

Remarks:

Task tracking:

date

carry out

carry on

time cost

Note

2004-3-20

Tomcat connection pool, and test

40:00

OK

2004-3-20

Complete Hibernate connection pool

50:00

OK

2004-3-20

Instance test completion

2:00

OK

Our first step began to configure Tomcat connection pool

First we put the mysql's JDBC driver to $ {tomcat_home} / circat_home} / common / lib, change the MyWeb settings as follows

Workdir = "E: / dev / myweb / work / org / apache / jsp">

Set the JNDi name of the connection pool

->

TYPE = "javax.sql.datasource" />

Factory class

->

factory

org.apache.commons.dbcp.basicDataSourceFactory

Connection pool basic settings

->

maxactive

100

maxidle

30

maxwait

10000

转载请注明原文地址:https://www.9cbs.com/read-30027.html

New Post(0)