Packages Folder
You use the elements in the packages folder to install, load, and/or alter the status of a package on the Integration Server.
Summary of Elements in this Folder
The following elements are available in this folder:
| Element | Package and Description |
|---|---|
| pub.packages:activatePackage | WmPublic. Activates (makes available to clients) an inactive package. |
| pub.packages:backupPackage | WmPublic. Creates a backup copy of a specified package. |
| pub.packages:disablePackage | WmPublic. Disables a package, thus prohibiting access to the services in the package. |
| pub.packages:enablePackage | WmPublic. Enables a package that has been disabled. |
| pub.packages:installPackage | WmPublic. Installs a package that has been published to this server. |
| pub.packages:recoverPackage | WmPublic. Recovers a package that exists in the server's salvage directory. |
| pub.packages:reloadPackage | WmPublic. Loads a new copy of the package into memory from disk. |
| pub.packages.hotdeployment:cancel | WmPublic. Cancels a hot deployment operation. |
pub.packages:activatePackage
WmPublic. Activates (makes available to clients) an inactive package.
You use this service to activate a package that was not activated when it was initially installed or recovered.
Input Parameters
| package | String Name of the package that you want to activate. Package names are case sensitive. |
Output Parameters
| message | String Message from server. (This is the same message that you receive when you activate a package with the Integration Server Administrator.) |
Usage Notes
This service will throw an exception if the package specified in package does not exist or cannot otherwise be activated.
When a package is activated, it is loaded into memory in an enabled state (that is, activatePackage automatically activates and enables the package.) You do not need to explicitly enable it with pub.packages:enablePackage.
See Also
pub.packages:backupPackage
WmPublic. Creates a backup copy of a specified package.
Input Parameters
| packageName | String Name of the package to back up. |
Output Parameters
None.
Usage Notes
The service creates the backup in a file named packageName.zip, where packageName is the name of the original package installed in Integration Server. The packageName.zip is placed in the following directory:
Integration Server_directory \instances\instance_name\replicate\inbound
If a package with the same name as the file produced by this service already exists in the Integration Server_directory \instances\instance_name\replicate\inbound directory, the service overwrites the existing .zip file with the backup copy that the service creates.
The backed up package is an exact copy of the specified package. Package metadata, such as creation timestamp, will be the same in the backup as in the original package. This is unlike package replication or package archiving in which the creation timestamp reflects the time the package was replicated or archived.
pub.packages:disablePackage
WmPublic. Disables a package, thus prohibiting access to the services in the package.
Input Parameters
| package | String Name of the package that you want to disable. Package names are case sensitive. |
Output Parameters
| message | String Message from server. (This is the same message that you receive when you disable a package with the Integration Server Administrator.) |
Usage Notes
When a package is disabled, the services in the package are no longer available to the clients. To re-enable a package that has been disabled, use pub.packages:enablePackage.
Be aware that if you disable a package while services in the package are being executed, those services will most likely fail. disablePackage does not wait for in-progress services to finish before disabling a package.
This service will throw an exception if the package specified in package does not exist or cannot otherwise be disabled.
See Also
pub.packages:enablePackage
WmPublic. Enables a package that has been disabled.
Input Parameters
| package | String Name of the package that you want to enable. Package names are case sensitive. |
Output Parameters
| message | String Message from server. (This is the same message that you receive when you enable a package with the Integration Server Administrator.) |
Usage Notes
When you enable a package, the package is reloaded into memory from disk.
This service will throw an exception if the package specified in package does not exist, has not been activated, or cannot otherwise be enabled.
See Also
pub.packages:installPackage
WmPublic. Installs a package that has been published to this server.
Input Parameters
| packageFile |
String Name of the distribution file that contains the
package that you want to install. This file must reside in the server's inbound
directory (
Integration Server_directory
\instances\instance_name\replicate\inbound).
When specifying packageFile,
For example:
|
| activateOnInstall |
String Flag that specifies whether you want
Integration Server to automatically activate the package after it is
installed. Set to:
|
| archiveOnInstall |
String Optional. Flag that specifies whether you want
Integration Server to archive the package automatically after it is
installed. Set to:
|
Output Parameters
| message | String Message from server. (This is the same message that is displayed when you install a package with the Integration Server Administrator.) |
Usage Notes
If the installed package replaces an existing package on the server, pub.packages:installPackage will automatically put a backup copy of the existing package in Integration Server_directory \instances\instance_name\replicate\salvage before it installs the new package.
This service will throw an exception if the file named in packageFile does not exist or cannot otherwise be installed correctly.
If hot deployment of packages is enabled, Integration Server installs the package using the hot deployment process.
The Integration Server must run in a version of the JVM whose major version is greater than or equal to the JVM version required by the package. For example, if the specified JVM version for a package release is 1.8.0_32, the installing Integration Server must be running in a JVM that is 1.8 or higher. If the major version of the Integration Server JVM is less than the JVM version required by the package, Integration Server installs but does not activate the package.
See Also
pub.packages:recoverPackage
WmPublic. Recovers a package that exists in the server's salvage directory.
The salvage directory ( Integration Server_directory \instances\instance_name\replicate\salvage) is where the server keeps packages that are deleted with the "safe delete" option or replaced with newer installed versions.
Input Parameters
| package | String Name of the package that you want to recover. Package names are case sensitive. |
| activateOnRecover |
String Flag that specifies whether you want the server
to automatically activate the package after it is recovered. Set to:
|
Output Parameters
| message | String Message from server. (This is the same message that is displayed when you recover a package with the Integration Server Administrator.) |
Usage Notes
You can only recover packages that exist in the server's salvage directory.
If you recover a package that is currently installed on the server, the package from the salvage directory replaces the version that is currently installed. (Be aware that the server does not retain a copy of the version that it replaces.)
This service will throw an exception if the file named in package does not exist in the server's salvage directory or cannot otherwise be recovered.
See Also
pub.packages:reloadPackage
WmPublic. Loads a new copy of the package into memory from disk.
If you make changes to the service in a package while the server is running, you must use reloadPackage to put those changes into effect.
Input Parameters
| package | String Name of the package that you want to reload. Package names are case sensitive. |
Output Parameters
| message | String Message from server. (This is the same message that is displayed when you reload a package with the Integration Server Administrator.) |
Usage Notes
Be aware that if you reload a package while services in the package are being executed, those services will most likely fail. reloadPackage does not wait for in-progress services to finish before reloading a package.
This service will throw an exception if the file named in package does not exist or cannot otherwise be reloaded.
pub.packages.hotdeployment:cancel
WmPublic. Cancels a hot deployment operation.
You use the hot deployment feature in Integration Server to upgrade custom packages in Integration Server while ensuring that the Integration Server assets are available for processing without any noticeable downtime. You can use the pub.packages.hotdeployment:cancel service to cancel a hot deployment operation if Integration Server is unable to start installing the package because of delay in the completion of in-flight tasks. For more information about hot deployment of packages, see Hot Deployment of Packages .
Input Parameters
| package | String Name of the package that is being upgraded using hot deployment operation that you want to cancel. Package names are case sensitive. |
Output Parameters
| message | String Message from server indicating the status of the cancellation of the hot deployment operation. |