Install IBM App Connect Enterprise 12.0.9.0 or later to use this feature.
About this task
You can retrieve a BAR file from a deployed application in the IBM App Connect Enterprise
Toolkit.
- Optional: Regeneration of deployed BAR files is enabled by
default in IBM App Connect Enterprise. If you want to disable the option to retrieve a
BAR file, update the setting in the server.conf.yaml file by completing the
following steps:
- Use a YAML editor to open the server.conf.yaml file.
You can edit the file by using the built-in YAML editor that is provided in the IBM App Connect
Enterprise Toolkit, either by double-clicking the file in the Application
Development view or by right-clicking the file and selecting . If you choose to edit the file by
using a plain text editor, ensure that you do not include any tab characters (which are not valid in
YAML) and use a YAML validation tool to validate the contents of your file.
For more information about working with YAML, see http://www.yaml.org.
- In the RestAdminAPI section, uncomment the line that contains the
allowBARRegeneration property, and set its value to
false
.
RestAdminAPI:
allowBARRegeneration: false # Allow a BAR file to be regenerated and source to be retrieved. Default is true.
- In the Integration Explorer view, select a deployed application from
which you want to import a BAR file.
- Right-click the application to display the menu.
- Click in the menu. If
is disabled in the menu, there
are two possible reasons:
- The application is in stopped state due to missing dependencies.
- The option to retrieve a BAR file is disabled in the server.conf.yaml
file.
If the BAR file that you want to retrieve exists in your workspace, a dialog opens to warn you
that the retrieved BAR file will overwrite the existing BAR file in your workspace. Click
Continue to overwrite the existing BAR file in your workspace or click
Cancel.
A dialog opens to confirm that a BAR file was created in your workspace and is available for use.
The dialog contains a link to the location of the retrieved BAR file. If you retrieved the BAR file
from a deployed application that is named My.App, the location of the imported
BAR file is YourWorkspace\GeneratedBARFiles\MyApp.regenerated.bar.
- Click the link to open the BAR file in the BAR file editor.
The BAR
file editor opens and contains a list of the BAR file contents. The list includes the application
from which the BAR file was imported. If the application references any shared libraries, or
contains any static libraries or policy projects, these artifacts are included in the list. If you
select Build and Save on the Prepare tab and there are no source files in
your workspace for the application that is contained in the BAR file, a warning message is
displayed.
- Click OK to close the dialog.
The contents of the directory C:\temp\Deploy are
deployed to the integration server, and the deployed resources are
shown.For more information, see ibmint deploy command.