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.
Next:
Continue by checking the results of the deployment.
Follow these steps to deploy a topics hierarchy using the mqsideploy command:
Next:
Continue by checking the results of the deployment.
Use the deploy method of the TopicRootProxy class. By default, the deploy method performs a delta deployment. To deploy the complete hierarchy, use a variant of the method that includes the Boolean isDelta parameter; setting this parameter to false indicates a complete deployment. (Setting it to true indicates a delta 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(); } } }
Next:
Continue by checking the results of the deployment.