After you create and populate a BAR file with the development resources, you can deploy the integration solution to an integration server.
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.
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; see Redeploying integration solutions to a production environment.
By default, BAR file deployment is incremental, but you can choose to perform a complete BAR file deployment if you prefer. For an explanation of the difference between a complete and an incremental BAR file deployment, see BAR file deployment.
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 a BAR file 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, eg.deploy("MyBAR.bar",
false, 30000).