The AS400 class in the micro package (com.ibm.as400.micro.AS400) provides a modified subset of the functions available in the AS400 class in the access package (com.ibm.as400.access.AS400). Use the IBM® Toolbox for Java™ 2 Micro Edition AS400 class to sign on the system from a Tier0 device.
The AS400 class provides the following functions:
The connection to the MEServer is made implicitly. For example, after you create an AS400 object, you can use the run() method in CommandCall to automatically perform connect(). In other words, you do not explicitly call the connect() method unless you want to control when the connection is established.
The following example shows how to use the AS400 class to sign on to on the system:
AS400 system = new AS400("mySystem", "myUserid", "myPwd", "myMEServer");
try
{
system.connect();
}
catch (Exception e)
{
// Handle the exception
}
// Done with the system object.
system.disconnect();