此内容没有您所选择的语言版本。
8.2. Using the Bundle Deployer Tool
Important
This bundle deployment tool is only to test the provisioning process and deployed application. This tool does not interact with the JBoss ON server or agent, so JBoss ON is unaware of any applications deployed with this tool and cannot manage them.
- Unzip the bundle distribution package to check (or copy an unzipped directory that contains the application files). For example:
mkdir /tmp/test-bundle cd /tmp/test-bundle unzip MyBundle.zip
mkdir /tmp/test-bundle cd /tmp/test-bundle unzip MyBundle.zip
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Open the top directory of the bundle distribution, where the
deploy.xml
Ant recipe file is. - Set the bundle deployer tool location in the PATH.
PATH="/opt/rhq-bundle-deployer-3.0.0/bin:$PATH"
PATH="/opt/rhq-bundle-deployer-3.0.0/bin:$PATH"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Run the bundle deploy tool, and use the format
-D
input_properties to pass the values to user-defined tokens in the templatized files. For example:rhq-ant -Drhq.deploy.dir=/opt/exampleApp -Dlistener.port=7081
rhq-ant -Drhq.deploy.dir=/opt/exampleApp -Dlistener.port=7081
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This installs the application in/opt/exampleApp
and sets a port value of 7081.Note
Optionally, use therhq.deploy.id
attribute to set an identifier for the deployment. The default is 0, which means a new deployment. When bundles are deployed in the UI, the server assigns a unique ID to the deployment. Using therhq.deploy.id
attribute on a new deployment simulates the server's ID assignment.Using therhq.deploy.id
attribute if there is already a previous deployment allows you to test the upgrade performance of the bundle. Performing an upgrade requires a new, unique ID number.