Before you start:
This task explains how to deploy your broker archive (bar). If you have not already created a bar file, create it now, before continuing.
You need to have access rights if the execution group to which you want to deploy is restricted by an ACL.
Follow these steps to deploy a bar file using the workbench:
Next:
Continue by checking the results of the deployment.
Follow these steps to deploy a bar file using the mqsideploy command:
Next:
Continue by checking the results of the deployment.
Use the deploy method of the ExecutionGroupProxy class. By default, the deploy method performs an incremental deployment. To perform a complete deployment, use a variant of the method that includes the boolean isIncremental parameter; setting this to false indicates a complete deployment. (Setting it to true indicates an incremental deployment.)
import com.ibm.broker.config.proxy.*; import java.io.IOException; 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(); BrokerProxy b = t.getBrokerByName("BROKER1"); ExecutionGroupProxy e = b.getExecutionGroupByName("default"); e.deploy("deploy.bar"); } catch (ConfigManagerProxyException cmpe) { cmpe.printStackTrace(); } catch (IOException ioe) { ioe.printStackTrace(); } } }
Next:
Continue by checking the results of the deployment.
Notices |
Trademarks |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
af03890_ |