WebSphere Message Broker, Version 8.0.0.7 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

Running the CMP Deploy BAR sample

Run the CMP Deploy BAR sample to deploy a broker archive file to a broker.

Before you start:

  • You must set up a default configuration.
  • Windows platformOn Windows, the BAR file must be in the same directory as the CMP .bat sample files.

The BAR file and execution group name, and the connection details that define the target broker, are hard coded into the application. You can run this sample unchanged, or you can modify the values and parameters that it uses to apply them to your own configuration.

If you modify the Deploy BAR sample, you must update and recompile the source file before you run it. The source file for this sample is located in the following directory:

install_dir/sample/ConfigManagerProxy/cmp/DeployBar.java
Use the Deploy BAR sample to deploy a BAR file to an execution group, and display the outcome.
  1. Run the Deploy BAR sample by entering the appropriate command for your platform:
    • Windows platformOn Windows, open a Command Console and run the following command:
      install_dir\sample\ConfigManagerProxy\StartDeployBAR.bat
    • Linux platformUNIX platformz/OS platformOn other platforms:
      1. Start a broker command environment by running mqsiprofile, or follow the guidance provided in the StartDeployBar shell script to configure the correct CLASSPATH for your environment.
      2. Run the shell script:
        install_dir\sample\ConfigManagerProxy\StartDeployBAR
    The default connection parameters used by the sample are shown in the following table.
    Connection parameter Description
    "localhost" Host name of the computer where the broker is running.
    "MB8QMGR" Name of the broker queue manager.
    2414 Port on which the broker queue manager is listening
    "default" Name of the execution group.
    "mybar.bar" Fully qualified name of the BAR file to deploy.
    The CMP connects to the broker that is running on the local computer (defined by localhost). The queue manager MB8QMGR must be listening on port 2414. Next, the CMP deploys the file mybar.bar to the predefined execution group default.
  2. Check the results of the sample by viewing the broker in the WebSphere® Message Broker Toolkit, or by using the CMP API Exerciser.
Next: Run another sample, or work with the CMP API Exerciser.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:47:01


Task topicTask topic | Version 8.0.0.7 | ae33330_