More Javadoc fixes.
This commit is contained in:
parent
122b14c8f4
commit
ed19117078
3 changed files with 22 additions and 27 deletions
|
@ -76,7 +76,8 @@ public class SimplePoolServlet extends HttpServlet {
|
|||
* The required intialization parameters are:
|
||||
* <p/>
|
||||
* <ul>
|
||||
* <li><code>varName</code> – Name of the variable used to hold a reference to the {@link SimplePoolDataSource}.</li>
|
||||
* <li><code>varName</code> – Name of the variable used to hold a reference to the
|
||||
* {@link SimplePoolDataSource}.</li>
|
||||
* <li><code>driver</code> – JDBC driver. e.g. 'oracle.jdbc.driver.OracleDriver'</li>
|
||||
* <li><code>jdbcUrl</code> – JDBC connect string. e.g. 'jdbc:oracle:thin:@203.92.21.109:1526:orcl'</li>
|
||||
* <li><code>user</code> – Database login name. e.g. 'Scott'</li>
|
||||
|
@ -103,8 +104,8 @@ public class SimplePoolServlet extends HttpServlet {
|
|||
String maxConnTime = servletConfig.getInitParameter("maxConnTime");
|
||||
String maxCheckoutSeconds = servletConfig.getInitParameter("maxCheckoutSeconds");
|
||||
|
||||
if (isValid(varName) && isValid(driver) && isValid(jdbcUrl) && (user != null) && (password != null) &&
|
||||
isValid(minConns) && isValid(maxConns) && isValid(maxConnTime) && isValid(maxCheckoutSeconds)) {
|
||||
if (isValid(varName) && isValid(driver) && isValid(jdbcUrl) && (user != null) && (password != null)
|
||||
&& isValid(minConns) && isValid(maxConns) && isValid(maxConnTime) && isValid(maxCheckoutSeconds)) {
|
||||
dataSource = new SimplePoolDataSource();
|
||||
|
||||
dataSource.setDriver(driver);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue