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

Deploying resources to a broker from a CMP application

Deploy BAR files to the brokers in your broker network from a CMP application.

You can also check the result of a deployment by using the CMP.

An example

This example connects to a broker that is running on the local computer. Its queue manager, MB8QMGR, is listening on port 2414. The code deploys a BAR file called MyBAR.bar to an execution group called default that is running on the broker, and displays the result.

import com.ibm.broker.config.proxy.*;
public class DeployBAR {

  public static void main(String[] args) {
    BrokerConnectionParameters bcp =
       new MQBrokerConnectionParameters("localhost", 2414, "MB8QMGR");
    try {
      BrokerProxy b = BrokerProxy.getInstance(bcp);
      ExecutionGroupProxy eg = b.getExecutionGroupByName("default");
      DeployResult dr = eg.deploy("MyBAR.bar", true, 30000);
      System.out.println("Result = "+dr.getCompletionCode());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
}

CMP API Exerciser

You can also use the CMP API Exerciser to deploy files and check the results. For example:
  1. Connect to the broker by clicking File > Connect to Broker. This action opens the Connect to Broker dialog.
  2. Enter the relevant connection parameters in the dialog. A hierarchical representation of the broker and its resources is displayed.
  3. Complete one or more of the following operations:
    • Click an object in the tree to display the attributes of that object.
    • Right-click an object in the tree to call CMP API methods that manipulate that object. For example, right-clicking a broker opens a menu that includes the items Start user trace.
    • Use the log pane at the bottom of the screen to view useful information that relates to the operation in progress.
Notices | Trademarks | Downloads | Library | Support | Feedback

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

        
        Last updated:
        
        Last updated: 2016-05-23 14:48:07


Task topicTask topic | Version 8.0.0.7 | bf43125_