After you have created and populated a BAR file, deploy the file to an integration server on an integration node, so that the file contents can be used in the integration node.
This topic assumes that you have created a BAR file. For more information, see Creating a BAR file.
If you change a BAR file, and want to propagate those changes to one or more integration nodes, you can redeploy the updated BAR file by following the instructions in Redeploying a BAR file.
The mode in which your integration node is working can affect the number of integration servers and message flows that you can deploy, and the types of node that you can use. See Restrictions that apply in each operation mode.
When you deploy a message flow that contains a subflow that is defined in .subflow file, you must deploy the subflow to the same integration server. You cannot deploy the message flow before the subflow, but you can deploy the subflow first, or both resources together. If you redeploy a subflow that is defined in a .subflow file to an integration server, any message flows that use the subflow in that integration server are stopped and restarted. When the message flows restart, they use the updated subflow.
If you deploy an application that references a shared library, you must deploy the shared library before you can deploy the application.
You can select a BAR file and deploy it to an integration server by using the web user interface.
You can also select an overrides file, which defines the BAR file properties that you want to change for a specific deployment. For more information, see mqsiapplybaroverride command.
To deploy a BAR file by using the IBM® Integration Toolkit, complete the following steps. You can deploy to only one integration server at a time.
To deploy a BAR file by using the mqsideploy command, complete the following steps.
The command reports when responses are received from the integration node. If the command completes successfully, it returns 0 (zero).
To deploy by using the IBM Integration API, use the deploy method of the ExecutionGroupProxy class.
import com.ibm.broker.config.proxy.*;
public class DeployBAR {
public static void main(String[] args) {
BrokerConnectionParameters bcp =
new IntegrationNodeConnectionParameters("localhost", 4414);
try {
BrokerProxy b = BrokerProxy.getInstance(bcp);
ExecutionGroupProxy eg = b.getExecutionGroupByName("default");
DeployResult dr = eg.deploy("MyBAR.bar", true, 30000);
System.out.println("Result = "+dr.getCompletionCode());
} catch (Exception e) {
e.printStackTrace();
}
}
}
By
default, the deploy method performs an incremental deployment. To
perform a complete deployment, use a variant of the method that includes a
false value for the Boolean isIncremental parameter.
For example, e.deploy("deploy.bar",false,0). Set this parameter to
true to request an incremental deployment.