The following table summarizes how the user ID and password values on an AS400 object are handled by a Java program running on an AS/400 system versus a Java program running on a client:
Values on AS400 Object |
Java Program Running on an AS/400 |
Java Program Running on a Client |
System name,
user ID,
and password not set |
Connect to the current AS/400 using the user ID and password of the job that started the program |
Prompt for system,
user ID,
and password |
|
System name = localhost |
Connect to the current AS/400 using the user ID and password of the job
that started the program |
Error:
localhost is not valid when the Java program is running on a client |
System name = localhost User ID = *current |
System name = localhost User ID = *current Password ID = *current |
|
System name = "sys" |
Connect to AS/400 "sys" using the user ID and password of the job that started the program.
"sys" can be the current AS/400 or another AS/400 |
Prompt for user ID and password |
|
System name = localhost User ID = "UID" Password ID = "PWD" |
Connect to the current AS/400 using the user ID and password specified by the Java program instead of the user ID and password of the job that started the program |
Error:
localhost is not valid when the Java program is not running on a client |