user manual

Chapter 29: iastool command-line utility 347
Using the iastool command-line tools
Options
The following table describes the options available when using the genclient
tool.
Example
The following example shows how to generate a manually deployable module
client JAR file from each of the EJB JAR files: proj1.jar, proj2.jar, and
proj3.jar into the EJB JAR myproj.jar.
iastool -genclient -jars proj1.jar,proj2.jar,proj3.jar -target myproj.jar
gendeployable
Use this tool to create a manually deployable server-side module. Server-side
deployable JAR files are archives (EAR, WAR, or JAR beans only) that have
been compiled to resolve all external code references by using stubs and are,
therefore, ready for deployment.
For example, first use gendeployable to create the server-side deployable JAR
file on a local machine, then use the deploy tool to copy and load it on the hub.
The hub is advised of the presence of the new JAR file and loads it
automatically. Using the command-line tools lets you script a creation and
deployment to several servers quite simply. You can also manually copy the
server-side deployable JAR file to the correct location on each hub, but this
requires restarting each hub to cause it to be recognized and loaded.
Option Description
-jars <jar1,jar2,...> Specifies one or more JAR files for which
you want to generate one or more client
JAR files. To specify more than one JAR
file, enter a comma (,) between each file
name (no spaces). The full or relative
path to the JAR files must be specified.
There is no default.
-target <client_jar> Specifies the client-JAR files to be
generated on the localhost. The full or
relative path to the JAR files must be
specified. There is no default.
-cp <classpath> Specifies the classpath containing the
class dependencies of the JAR file for
which you want to generate a client JAR
file. The default is none.
-args <java2iiop_args> Specifies any arguments that are needed
by the file. For details, see the VisiBroker
for Java Developers Guide, Programmer
tools for Java section.
-javac_args <args> Specifies any Java compiler arguments
that are needed by the JAR file.