WebSphere Message Brokers
File: af35110_
Writer: John Morris-Smith

Task topic

This build: July 31, 2007 21:29:26

Deploying a broker configuration

Using the Message Broker Toolkit

If you modify any multicast or interbroker settings in the Broker Administration perspective, a broker configuration deployment starts automatically when you apply the changes.

Using the mqsideploy command

Follow these steps to deploy a broker configuration using the mqsideploy command:

  1. Open a command window that is configured for your environment.
  2. Using the examples below, enter the appropriate command, specifying the broker to which you want to deploy:
    On distributed platforms:
    mqsideploy -i ipAddress -p port -q qmgr -b broker

    where -i (IP address), -p (port), and -q (queue manager) represent the connection details of the queue manager workstation.

    On z/OS:
    /f MQ01CMGR,dp b=broker

    where MQ01CMGR is the name of the Configuration Manager component.

    If you specify the broker to which you want to deploy (-b or b=), without indicating a bar file (-a), you deploy the broker configuration rather than a message flow application.

Next:

Continue by checking the results of the deployment.

Using the Configuration Manager Proxy API

Use the deploy method of the BrokerProxy class.

For example:
import com.ibm.broker.config.proxy.*;

public class DeployBrokerConfig {
  public static void main(String[] args) {
    ConfigManagerConnectionParameters cmcp =
            new MQConfigManagerConnectionParameters
                ("localhost", 1414, "QM1");
    try {
      ConfigManagerProxy cmp = ConfigManagerProxy.getInstance(cmcp);
      TopologyProxy t = cmp.getTopology();
      BrokerProxy b = t.getBrokerByName("BROKER1");
      if (b != null) {
        b.deploy();
      }
    }
    catch (ConfigManagerProxyException e) {
      e.printStackTrace();
    }
  }
}

Next:

Continue by checking the results of the deployment.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:29:26

af35110_ This topic's URL is: