Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update UCPMaxConnReuse.java
  • Loading branch information
nsundara authored Apr 27, 2018
commit 3ac7c68f6df05002b64588a52c90981bca448c19
6 changes: 3 additions & 3 deletions java/jdbc/BasicSamples/UCPMaxConnReuse.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* for ALL 3 of user, password, and URL. This can be done by either updating
* this file directly or supplying the 3 values as command-line options
* and user input. The password is read from console or standard input.
* java UCPMaxConnReuse -url <url> -user <user>
* java UCPMaxConnReuse -l <url> -u <user>
* If you do not update all the defaults, the program proceeds but
* will hit error when connecting.
*/
Expand Down Expand Up @@ -259,10 +259,10 @@ static void showError(String msg, Throwable exc) {

static void getRealUserPasswordUrl(String args[]) throws Exception {
// URL can be modified in file, or taken from command-line
url = getOptionValue(args, "-url", DEFAULT_URL);
url = getOptionValue(args, "-l", DEFAULT_URL);

// DB user can be modified in file, or taken from command-line
user = getOptionValue(args, "-user", DEFAULT_USER);
user = getOptionValue(args, "-u", DEFAULT_USER);

// DB user's password can be modified in file, or explicitly entered
readPassword(" Password for " + user + ": ");
Expand Down