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 UCPManagerMBean.java
  • Loading branch information
nsundara authored Apr 27, 2018
commit ddcd2426d5c15941cb6e40135afdc765968d34c3
6 changes: 3 additions & 3 deletions java/jdbc/BasicSamples/UCPManagerMBean.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,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 UCPManagerMBean -url <url> -user <user>
* java UCPManagerMBean -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 @@ -319,10 +319,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