Deploys a J2EE EAR file, J2EE WAR file, J2EE JAR file, or EAServer JAR file to the server.
deploy [ connect-args | local-args ] [-type filetype] [-stubsandskels true|false] [-jagjartype jartype] [-install true|false] [-strategy strategy] [-verbose true|false] [-interoperablenaming true|false] [-setjarfilepackagenaming=”true|false”] filename
<jag_deploy [ type="filetype" ] [ stubsandskels="true|false" ] [ jagjartype="jartype" ] [ install="true|false" ] [ strategy="strategy" ] [ verbose="true|false" ] [ interoperablenaming=”true|false” ] [setjarfilepackagenaming=”true|false”] file="filename” />
Option  | 
Description  | 
Default  | 
Required  | 
|---|---|---|---|
connect-args | local-args  | 
Arguments to specify a connection to the server or to run in local mode. See “Local versus connected mode”.  | 
None  | 
Yes  | 
  | 
The type of file deployed: 
  | 
ear  | 
No  | 
  | 
Indicates whether to generate stubs and skeletons for EJB files. This flag is applicable only to EAR and EJB files.  | 
true  | 
No  | 
  | 
When type is  
  | 
Application for type   | 
Only for type   | 
  | 
Indicates whether to automatically deploy installed entities in servers.  | 
true  | 
No  | 
  | 
Indicates the deployment strategy. Options are: 
 You can specify incremental when the methods, fields, interfaces, or superclass of a class have changed. Specify full when other details have changed or IDL has been deleted.  | 
incremental  | 
No  | 
  | 
For EAR or EJB-JAR files, specifies how newly created packages are named, as follows: 
  | 
false  | 
No  | 
  | 
Indicates that output during deployment is verbose.  | 
false  | 
No  | 
filename  | 
The name of the deployed file.  | 
None  | 
Yes  | 
Return value  | 
Indicates  | 
|---|---|
0  | 
The command ran successfully; the result is true/success.  | 
1  | 
The command ran successfully; the result is false/failure.  | 
2  | 
The command did not run successfully; an exception was thrown.  | 
This command runs in local mode and deploys the EJB-JAR file named myejb.jar into the server named FooServer:
jagtool -local -server FooServer deploy -type ejbjar myejb.jar
This example deploys the J2EE EAR file eastore.ear to the server:
Command line:
jagtool deploy -type ear e:\temp\estore.ear
Ant build file:
<jag_deploy type="ear" file="e:\temp\estore.ear" />
This example deploys the JAR file AuthServiceDemo.jar to the server:
Command line:
jagtool deploy -type jagjar -jagjartype Package /tmp/AuthServiceDemo.jar
Ant build file:
<jag_deploy type="jagjar" jagjartype="Package" file="/tmp/AuthServiceDemo.jar" />
Chapter 9, “Importing Application Components” in the System Administration Guide.