user manual

Chapter 29: iastool command-line utility 365
Using the iastool command-line tools
Options
The following table describes the options available when using the setmain
tool.
Examples
The following example sets a main class for a standalone Client JAR:
iastool -setmain -jar myclient.jar -class com.bes.myjclass
The following example sets a main class for a Client JAR contained in an EAR
file:
iastool -setmain -jar myapp.ear -uri base/myapps/myclient.jar
-class com.bes.myjclass
start
Use this tool to start a managed object on a specified hub and configuration.
Syntax
-start <-hub <hub> | -host <host>:<listener_port>> -cfg <configname>
-mo <managedobjectname> -moagent <managedobjectagent> [-mgmtport <nnnnn>]
[-realm <realm>] [-user <username>] [-pwd <password>] [-file <login_file>]
Default Output
The default output displays the managed object that has been started.
Option Description
-jar <jar_or_ear> Specifies the name of the JAR or EAR
file on which you want to set the main
class.
-uri <client_jar_in_ear> If you are setting the main class for an
EAR file, you must use the -uri option to
identify the URI (Uniform Resource
Identifier) path of the client JAR in the
EAR.
-class <main_classname> Specifies the class name that will be set
as the main class in the specified Client
JAR. The class must exist in the client
JAR file and contain a main() method.