After you create and populate a BAR file with the development resources, you can deploy the integration solution to an integration server or to IBM® Integration Bus on Cloud.
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 do 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 completes
an incremental deployment. To do 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). IBM Integration Bus on Cloud provides a fully managed environment that you can use to deploy integration solutions on the cloud without the need to acquire and maintain an IT infrastructure.
You deploy a solution to IBM Integration Bus on Cloud by uploading the BAR file to the cloud. When you upload your BAR file to the cloud, the contents of the BAR file are used to create an integration. Each integration contains the contents of a single BAR file. You can start and stop your integrations in the integrations list view.
For detailed instructions about how to upload BAR files to the cloud, see Running integrations in the cloud in the IBM Integration Bus on Cloud product documentation.