Deploying integration solutions to a production environment
After you create and populate a BAR file with the development resources, you can deploy the integration solution to an integration server.
Before you begin
- Review the deployment rules and guidelines; see Deployment rules and guidelines.
- Package your integration solution in a BAR file; see Packaging integration solutions.
The mode in which IBM® App Connect Enterprise is running can affect the number of integration servers and message flows that you can deploy. For more information, see Restrictions that apply in each operation mode.
About this task
- Deploying a BAR file by using the web user interface
- Deploying a BAR file by using the IBM App Connect Enterprise Toolkit
- Precompiling and deploying a BAR file by using the mqsibar command
- Deploying a BAR file by using the mqsideploy command
- Deploying a BAR file by using the IBM Integration API
- Deploying a BAR file to IBM App Connect Enterprise as a Service
If you change a BAR file and want to propagate those changes to one or more integration servers, you must delete the existing BAR file from the integration server and deploy the new one.
Deploying a BAR file by using the web user interface
About this task
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.
Procedure
Results
Deploying a BAR file by using the IBM App Connect Enterprise Toolkit
About this task
To deploy a BAR file by using the IBM App Connect Enterprise Toolkit, complete the following steps. You can deploy to only one integration server at a time.
Procedure
Results
Precompiling and deploying a BAR file by using the mqsibar command
About this task
You can use the mqsibar command to deploy a BAR file to an integration server, by unpacking the contents directly into the integration server's run directory. You can also choose to precompile the resources that the BAR file contains (such as XML schema, DFDL schema, and graphical data maps), so that they are ready to run when the integration server starts.
You can use the mqsibar command in a script, as part of an automated process that might include commands to test, tune, deploy, and run the application, as an alternative to deploying through the toolkit or web user interface. This method can be particularly useful if you are running IBM App Connect Enterprise in a cloud container.
Deploy a BAR file by using the mqsibar command, by completing the following steps.
Procedure
Results
The command reports when responses are received from the integration server. If the command completes successfully, it returns 0 (zero).
Deploying a BAR file by using the mqsideploy command
About this task
To deploy a BAR file by using the mqsideploy command, complete the following steps.
Procedure
Results
The command reports when responses are received from the integration node or independent integration server. If the command completes successfully, it returns 0 (zero).
Deploying a BAR file by using the IBM Integration API
About this task
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)
. Deploying a BAR file to IBM App Connect Enterprise as a Service
With App Connect Enterprise as a Service, you can deploy and manage integration solutions that were developed in the App Connect Toolkit.
Before you begin
- Before you can deploy an integration solution to App Connect Enterprise as a Service, you must purchase a subscription. For more information, see App Connect as a Service pricing plans in the App Connect Enterprise as a Service documentation.
- To check with BAR file resources are supported in App Connect Enterprise as a Service, see Supported resources in imported BAR files in the App Connect Enterprise as a Service documentation.
About this task
App Connect Enterprise as a Service provides a fully managed environment that you can use to deploy integration solutions to the cloud without the need to acquire and maintain an IT infrastructure.
You deploy a solution to App Connect Enterprise as a Service by uploading the BAR file to the cloud. For more information, see Deploying integrations in the App Connect Enterprise as a Service documentation.