To deploy files to an integration server, include them in a broker archive (BAR) file.
Create a BAR file for each configuration that you want to deploy. For more information, see Creating a broker archive (BAR) file.
You can add any deployable resources from your workspace to a BAR file. If you select Add workspace project source files, the source and project files for all message flows, message model schema files, message sets, or other deployable resources in the broker archive are included. For more information about the files that you can include in a broker archive, see Broker archive.
Subflows that are defined in .msgflow files are not displayed in the BAR file as separate items, and are added automatically. To include these subflows, you must add only the parent flow. Subflows that are defined in .subflow files are displayed in the BAR file as separate items and can be deployed as individual resources. If a parent flow is added that contains these subflows, the subflows are added to the BAR file automatically when the BAR file is built.
You can add Flow, DLL, ESQL, Java™ JAR, PHP, MAP, XML, XSLT files, and Message Sets manually by following these steps. However, JAR files or .NET assemblies (DLL files) that are required by JavaCompute nodes or .NETCompute nodes in message flows are added automatically from your Java project or integration project when you add the message flow. XML and XSL files are also added automatically if they are required by the flow.
When you add a message flow (defined in a .msgflow file) to a BAR file, you can add the flow as a .msgflow file, or add it as a compiled message flow (defined in a .cmf file). Select Compile and in-line resources to add flows as .cmf files. You cannot add the same message flow to a BAR file as both a .cmf file and a .msgflow file. If your flow contains one of the following nodes, you cannot add the flow as a .msgflow file:If you select Compile and in-line resources, ESQL code is embedded in the .cmf file that references it. If you do not select Compile and in-line resources, ESQL files are added to the BAR file as individual resources.
Be aware that if your BAR file contains a mixture of resources that are compiled and resources that are not compiled, you might see unexpected results. For example, if you select the Compile and in-line resources option to create a BAR file that contains an ESQL file and a message flow, the ESQL is embedded in the compiled message flow (.cmf) file. If you then update the ESQL and add it to the BAR file with the Compile and in-line resources option cleared, the ESQL file is added as an individual resource, but the .cmf file uses the original ESQL because the original ESQL remains embedded in the .cmf file. To ensure all your resources are either compiled or not compiled, when you change the Compile and in-line resources option also select Remove contents of Broker Archive before building and rebuild the BAR file.
Try to avoid a mixed deployment case that has message flows deployed as CMF and subflows (.subflow) deployed as source files, along with the ESQL modules that are referenced by these subflows. For more information about this behavior, and examples of the recommended deployment options, see Deploying resources.
You do not have to redeploy JAR files unless you update them. If one or more JAR files in your BAR file are present on the computer where the broker is running, you can safely remove them from your BAR file before you deploy again. JAR files available to the broker include JAR files that you deployed and JAR files that exist in the shared-classes directories or the classes subdirectory of the installation directory. For example, the files com.ibm.mq.jar, ConfigManagerProxy.jar, jplugin2.jar, and javacompute.jar are always visible to the broker, and do not have to be deployed separately.
You cannot read deployed files back from broker integration servers. Therefore, keep a copy of the deployed BAR file, or of the individual files in it.
To add files to a BAR file by using the IBM® Integration Toolkit, complete the following steps.
The Manage page lists the files that are now in your BAR file. Expand your applications and libraries to view their contents. Compiled resources in the BAR file are shown in alphabetical order in the tree. You can edit only root elements; for example, if you added an application to the BAR file, you can rename the .appzip file or add comments to it. You cannot edit the resources inside the .appzip file, but you can edit the configurable properties for those resources.
You cannot remove individual resources from .appzip, .appdomainzip, or .libzip files; to remove these resources, you must remove the application, .NET application domain, or library.
You can choose not to display your source files by selecting Built resources or Configurable properties from the list in the Filter by menu.
If you use configurable properties, see Editing configurable properties.
If you want to have multiple instances of a flow with different values for the configurable properties, see Adding multiple instances of a message flow to a broker archive.
To make further changes to your BAR file, see Editing a broker archive file manually.
When your BAR file is complete, deploy it by following the instructions in Deploying a broker archive file.