Skip to content

Commit 3ac7c68

Browse files
authored
Update UCPMaxConnReuse.java
1 parent ddcd242 commit 3ac7c68

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/jdbc/BasicSamples/UCPMaxConnReuse.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* for ALL 3 of user, password, and URL. This can be done by either updating
3838
* this file directly or supplying the 3 values as command-line options
3939
* and user input. The password is read from console or standard input.
40-
* java UCPMaxConnReuse -url <url> -user <user>
40+
* java UCPMaxConnReuse -l <url> -u <user>
4141
* If you do not update all the defaults, the program proceeds but
4242
* will hit error when connecting.
4343
*/
@@ -259,10 +259,10 @@ static void showError(String msg, Throwable exc) {
259259

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

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

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

0 commit comments

Comments
 (0)