Summary of user ID and password values on an AS400 object

The following table summarizes how the user ID and password values on an AS400 object are handled by a Java™ program running on a server compared to a Java program running on a client.

Values on AS400 object Java program running on a server Java program running on a client
System name, user ID, and password not set Connect to the current server 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 server 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 server "sys" using the user ID and password of the job that started the program. "sys" can be the current server or another server Prompt for user ID and password
System name = localhost User ID = "UID" Password ID = "PWD" Connect to the current server 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