IBM Integration Bus, Version 9.0.0.8 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, IB9QMGR, is listening on port 2414. The code deploys a BAR file called MyBAR.bar to an integration server 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, "IB9QMGR");
    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();
    }
  }
}

IBM Integration API (CMP) Exerciser

You can also use the IBM® Integration API (CMP) 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 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.

bf43125_.htm | Last updated Friday, 21 July 2017