Before you start:
Make sure that you have configured your broker domain.
You can configure the workbench preferences so that topology information is automatically deployed after a change.
After you have deployed a publish/subscribe topology, you might see an extra execution group process called $SYS_mqsi in a process listing, or in the output from the mqsilist command. When you deploy a publish/subscribe topology for the first time, a new execution group process is started on your broker to handle the publish/subscribe messages. This execution group is only used internally: it does not appear in the workbench and you cannot deploy message flows to it. After you have deployed one or more of your own flows to another execution group, $SYS_mqsi is removed when the broker is subsequently restarted.
Follow these steps to deploy a topology configuration using the workbench:
The topology is deployed, and the Configuration Manager distributes it to the brokers in the domain.
Next:
Continue by checking the results of the deployment.
Follow these steps to deploy a topology configuration using the mqsideploy command:
Next:
Continue by checking the results of the deployment.
Use the deploy method of the TopologyProxy 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 to false indicates a complete deployment. (Setting it to true indicates a delta deployment.)
import com.ibm.broker.config.proxy.*; public class DeployTopology { public static void main(String[] args) { ConfigManagerConnectionParameters cmcp = new MQConfigManagerConnectionParameters ("localhost", 1414, "QM1"); try { ConfigManagerProxy cmp = ConfigManagerProxy.getInstance(cmcp); TopologyProxy t = cmp.getTopology(); t.deploy(false); } catch (ConfigManagerProxyException e) { e.printStackTrace(); } } }
Next:
Continue by checking the results of the deployment.
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
af03920_ |