12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the iastool command-line tools<br />

Options<br />

The following table describes the options available when using the setmain tool.<br />

Option<br />

-jar <br />

-uri <br />

-class <br />

Description<br />

Specifies the name of the JAR or EAR file on which you want to<br />

set the main class.<br />

If you are setting the main class for an EAR file, you must use<br />

the -uri option to identify the URI (Uniform Resource Identifier)<br />

path of the client JAR in the EAR.<br />

Specifies the class name that will be set as the main class in the<br />

specified Client JAR. The class must exist in the client JAR file<br />

and contain a main() method.<br />

Examples<br />

The following example sets a main class for a standalone Client JAR:<br />

iastool -setmain -jar myclient.jar -class com.bes.myjclass<br />

The following example sets a main class for a Client JAR contained in an EAR file:<br />

iastool -setmain -jar myapp.ear -uri base/myapps/myclient.jar<br />

-class com.bes.myjclass<br />

start<br />

Use this tool to start a managed object on a specified hub and configuration.<br />

Syntax<br />

-start -cfg <br />

-mo -moagent [-mgmtport ]<br />

[-realm ] [-user ] [-pwd ] [-file ]<br />

Default Output<br />

The default output displays the managed object that has been started.<br />

Options<br />

The following table describes the options available when using the start tool.<br />

Table 29.5<br />

Option<br />

-hub <br />

Options available when using the start tool<br />

-host :<br />

-cfg <br />

-mo <br />

-moagent <br />

-mgmtport <br />

-realm <br />

Description<br />

Specifies the name of the hub on which the managed<br />

object you want to start is located.<br />

Specifies the host name and the listener port of the<br />

machine on which the managed object you are interested<br />

in is running. The option is enables the iastool utility to<br />

locate a hub on a different subnet than the machine on<br />

which iastool is running.<br />

Specifies the name of the configuration containing the<br />

managed object you are interested in.<br />

Specifies the name of the managed object you are<br />

interested in.<br />

Specifies the managed object agent name. Use this option<br />

if the specified hub has more than one agent.<br />

Specifies the management port number used by the<br />

specified hub. If not specified, the default is 42424.<br />

Specifies the realm used to authenticate a user when the<br />

user and password options are specified.<br />

316 BES Developer’s Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!