Deploy your topics hierarchy using the workbench, the mqsideploy command, or the Configuration Manager Proxy.
Before you start:
Make sure that you have configured your broker domain.
You can configure the workbench preferences so that a topics hierarchy is automatically deployed after you have made a change.
Follow these steps to deploy a topics hierarchy using the workbench:
The topics hierarchy is deployed, and the Configuration Manager distributes the topics to brokers in the domain.
Follow these steps to deploy a topics hierarchy using the mqsideploy command:
Use the deploy method of the TopicRootProxy class. By default, the deploy method performs an incremental (delta) deployment. To deploy the complete hierarchy, use a variant of the method that includes the Boolean isDelta parameter set to false. Setting this parameter to true indicates an incremental deployment.
import com.ibm.broker.config.proxy.*; public class DeployTopics { public static void main(String[] args) { ConfigManagerConnectionParameters cmcp = new MQConfigManagerConnectionParameters ("localhost", 1414, "QM1"); try { ConfigManagerProxy cmp = ConfigManagerProxy.getInstance(cmcp); TopicRootProxy t = cmp.getTopicRoot(); t.deploy(false); } catch (ConfigManagerProxyException e) { e.printStackTrace(); } } }