Updating bundle versions using the editAsset command

You can use the editAsset command to configure each bundle in an enterprise bundle archive (EBA) asset to use a specific bundle version, or to pull in the latest available version that is compatible with your selections for other bundles. This process updates the EBA asset in the current environment.

Before you begin

If the asset has previously been updated, the bundle downloads for the previous update must have completed, and the business-level application must have picked up the previous updates by being restarted. For more information, see Checking the bundle download status of an EBA asset.

You can update bundle versions by using wsadmin commands as described in this topic, or by using the administrative console as described in Updating bundle versions in the current environment.

You can also update bundle versions by exporting, manually modifying, and re-importing the deployment manifest file as described in Maintaining bundle versions for an EBA asset.

About this task

For each bundle deployed in your EBA asset you can select either of the following options:
  • Use a specific available bundle version.
  • Use any version. In this case, the latest available version that is compatible with your selections for other bundles is used.

After you make your selections for this asset, the system tries to resolve the changes you have requested, and shows you the results. When you have selected a working configuration, the bundle version updates for the asset are applied. Some bundle updates might be contained in your application, whereas other might need to be downloaded from a bundle repository.

When an EBA asset is updated, the update does not immediately affect the running business-level application that contains the associated EBA composition unit. When the business-level application is next restarted, the deployed content of the EBA composition unit is updated to reflect the updated configuration of the underlying asset. Because it can take time to download new bundle versions, you must wait until the bundle downloads for the asset are complete before you restart the business-level application. If you restart a business-level application before the bundle downloads are complete, the business-level application uses the previous configuration.

You cannot update bundles that are provisioned by the runtime environment, that is, that are listed in the Provision-Bundle header in the deployment manifest.

Procedure

  1. Check the current bundle download status for all bundles in this asset.

    You can use the editCompUnit wsadmin command to check the bundle download status for an asset. This command checks the status of the associated EBA composition unit, as described in Checking and updating the EBA asset version used by a business-level application. If the EBA composition unit has a status of "Update in progress", this means that bundle updates are currently being downloaded for the EBA asset.

  2. Choose the update bundle version preference for each bundle in this application.
    To select bundle versions for an EBA asset using the editAsset command, open a wsadmin command prompt then run the following jython command:
    AdminTask.editAsset('[
        -assetID asset_name 
        -UpdateAppContentVersionsStep 
        [[bundle_name current_version update_preference]]]')
    Notes:
    • current_version is either a bundle version number, for example 1.0.0, or NOT_DEPLOYED for shared bundles (that is, use bundles) that are declared in the application manifest but not deployed by the runtime environment. This parameter describes the current configuration of the bundle, and is not used to change the configuration.
    • update_preference is either a bundle version number, for example 1.0.0, or NO_PREF. This parameter specifies the new bundle version preference.

    For more information about using the editAsset command, see Business-level application configuration scripts.

    After you make your selections for this asset, the system tries to resolve the changes you have requested, and shows you the results. When you have selected a working configuration, the bundle version updates for the asset are applied.

  3. Optional: The business-level application that uses this asset picks up the changes the next time it is restarted. To pick up the changes as soon as possible, wait until bundle downloading is complete for the asset then restart the business-level application.

Icon that indicates the topic type Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Saturday, 20 October 2012
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v700osgijpa&product=was-nd-mp&topic=ta_admin_maint_bundle_ver_wsadmin

Copyright IBM Corporation 2009, 2012.
This information center is powered by Eclipse technology. (http://www.eclipse.org)