Package Deployment

Deploys a package to a domain.

Syntax

void deployPackage(String fileName, DEPLOY_MODE deployMode, String securityConfiguration, Collection<RoleMappingVO> roleMappings, Map<String, String> endpointMappings) throws SUPAdminException;

Parameters

The deployment mode determines how the deployment process handles the objects in a deployment unit and package. Which value you choose depends on whether or not a package of the same name already exists on Unwired Server. Allowed values are:
  • UPDATE – updates the target package with updated objects. After deployment, objects in the server's package with the same name as those being deployed are updated. By default, deploymentMode is UPDATE.
  • VERIFY – do not deploy package. Only return errors, if any. Used to determine the results of the UPDATE deploy mode.
If the deployment mode is specified both in the descriptor file and the command-line, the command-line deploymentMode option override the deployment mode specified in the descriptor file.

Returns

If successful, returns silently. If unsuccessful, returns SUPAdminException.

Examples