diff --git a/simplepool-examples/jndi/index.jsp b/simplepool-examples/jndi/index.jsp index bd6a950..d36fea8 100644 --- a/simplepool-examples/jndi/index.jsp +++ b/simplepool-examples/jndi/index.jsp @@ -61,15 +61,15 @@
The JNDI DataSource is defined as naming resource in the current webapp context, as shown in this minimal server configuration file.
The JNDI DataSource is configured using the following parameters:
varName
parameter is used to specify the name of the variable which will hold a reference to the DataSource object created by the Servlet.driver
parameter is used to specify the name of the JDBC driver class to be registered. For example: com.mysql.jdbc.Driver
.example: com.mysql.jdbc.Driver
.password
parameter is used to specify the database password, if any.jdbcUrl
parameter is used to specify the JDBC URL associated with the database. For example: jdbc:mysql://localhost:3306/dbname
.minConns
parameter is used to specify the minimum number of connections to start the pool with.maxConns
parameter is used to specify the maximum number of connections to be dynamically created in the pool.maxConnTime
parameter is used to specify the time (in days) between connection resets. The pool manager will perform a basic cleanup at the specified interval.maxCheckoutSeconds
parameter is used to specify the maximum time a connection can be checked out before being recycled. A zero value turns this option off.jdbc:mysql://localhost:3306/dbname
.Please note that all parameters are required.
Please take a minute to incorporate the JDNI DataSource example in your $CATALINE_HOME/conf/server.xml
. Once done, please restart Tomcat. The examples will be functional upon restart.