Chapter 13 Using jagtool and jagant


deploy

Description

Deploys a J2EE EAR file, J2EE WAR file, J2EE JAR file, or Jaguar JAR file to the server.

Syntax

Command line:

deploy 
[-type filetype] 
[-stubsandskels true|false]
[-jagjartype jartype]
[-install true|false] 
[-strategy strategy] 
[-verbose true|false]
[-interoperablenaming true|false]
[-setjarfilepackagenaming="true|false"]
filename

Ant build file:

<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
type The type of file deployed:
  • ear
  • war
  • ejbjar
  • jagjar
  • rar
ear No
stubsandskels Indicates whether stubs and skeletons should be generated for EBJ files. This flag is applicable only to EAR and EBJ files. true No
jagjartype When type is jagjar , specifies the contents of the Jaguar JAR file. Options are:
  • Application
  • Connector
  • EntityCollection
  • Package
  • WebApplication
none Only for type jagjar
install Indicates whether installed entities should be automatically deployed in servers. true No
strategy Indicates the deployment strategy. Options are:
  • full IDL is generated for everything in the deployment tree.
  • incremental IDL is generated for everything that has changed.
  • optimistic Used for implementation changes (for example, if you have changed the contents of a method without changing its prototype).


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
interoperablenaming Enables interoperable naming. This option is available only when you are running JDK 1.3. true No
setjarfilepackagenaming For EAR or EJB-JAR files, specifies how newly created packages are named, as follows:
  • true indicates that entities use the name of the archive file that they are imported from.
  • false indicates that entities use the display-name element in the deployment descriptor.
false No
verbose Indicates that output during deployment is verbose. false No
filename The name of the deployed file. - Yes

Examples

This example deploys the J2EE EAR file eastore.ear to the server:

This example deploys the JAR file AuthServiceDemo.jar to the server:

See Also

Chapter 10, "Importing and Exporting Application Components"

 


Copyright © 2002 Sybase, Inc. All rights reserved.