The agent launch command line tool allows the user to specify the same information as is specified in the Wizard. The command line tool can be used within batch files and shell scripts to automate the launching of agents. To launch the DBAccessAgent with the same parameters as specified above in the Wizard, the user types the following command line:
bootStrap -d dbserver,queryDatabase -d workstation,reportResults -f QueryResult.class C:\MyAgents\DBAccessAgent.class
The command line tools syntax looks like the following
bootStrap [-d hostname,method] [-f relatedfile.class] [-h] agentfile.class
The user specifies the agent class file as the last parameter to the command. Note that
in order to be launched with the command line tool, the agent must contain a constructor
which takes no arguments. The Destinations of the agent's Itinerary are
specified with the -d option. A Destination is specified by the hostname followed
by a comma (no space) followed by the name of the method to invoke. The user specifies
related class files that should be sent with the agent using the -f option. The -h option
brings up some command line help.