App Connect

 View Only

From IBM Integration Bus to App Connect Enterprise in containers

By AMAR SHAH posted Tue October 26, 2021 09:32 AM


This blog is part of a series. For the whole series list see here

Scenario 1. Basic example using Docker

Many enterprises have IBM Integration Bus environments running 100s of integration flows in production. You have likely read about the benefits of moving to containers, perhaps even more generally of agile integration (, and you’d like to explore that. You’d also like to move to a more recent version of the product (now named App Connect Enterprise). However, it is likely you have no, or at least very limited background in container technology. How do you take the first steps to exploring these new platforms and product versions? 

In this series we are going describe how you move to containers running App Connect Enterprise. We’ll build up to more complex examples, but for this first one we’ll take the simplest possible flow, and we’ll use a Docker container environment that can easily be run on a laptop.

It is worth noting that you are not forced to move to containers to move to IBM App Connect Enterprise, but hopefully through these articles we will give you some practical insight into the benefits you might gain if you do.

Introducing our (very) simple integration flow

We take a simple example of an HTTP based flow as shown in the figure below, that presents an echo service (we’ll call it HttpEcho) over an HTTP endpoint on port 7800. This returns the current date-stamp in response. Clearly this example flow doesn’t do much, but this article isn’t about writing integration flows, it is about moving them to containers, and we’ll come to more complex ones in future articles. 

You can call this by going to http://localhost:7800/Echo or running curl command as

curl -k http://localhost:7800/Echo">http://localhost:7800/Echo

The BAR file generated using IIB v10 Toolkit containing the above message flow is attached here. 

We have deliberately supplied just the BAR file in this example to show that it is possible to run a BAR file from IBM Integration Bus (v9 or v10) directly on later versions such as IBM App Connect Enterprise (v11 onwards). However, as we get to the more complex examples we’ll explore situations where you would also need to have the source code of the message flow available. 

In this scenario we will see how to deploy this BAR file into a Docker container running IBM App Connect Enterprise using simple steps.

Install Docker or Podman

Important: In August 2021, Docker announced changes to their product subscription model. While Docker Desktop for MacOS and Windows remains free for certain users under the terms of Docker’s Personal tier, those users working in larger organizations and groups may be required to subscribe to one of Docker’s paid subscription tiers. These changes will take effect starting on January 31, 2022.

To install Docker, download Docker Community Edition, version 17.06 or later, from Docker Hub. Then, follow the instructions in the installation documentation to install Docker.

Docker images are generated in an OCI standard format and are compatible with Podman, an open source, Linux-native tool. (Read more about transitioning to Podman in this Red Hat Developer blog.) If you do not want to (or cannot) subscribe to one of Docker’s paid subscription tiers, you can use Podman as an alternative to complete this tutorial.

To install Podman, follow the instructions in the Podman installation documentation.

Obtaining the ACEcc image from the IBM Cloud Container Registry

IBM provides a pre-built container image for IBM App Connect Enterprise, available at a range of fix pack levels including of course, the very latest. You can think of this as a pre-installed, stand-alone Integration Server wrapped up on a container image. It is a production ready image, and this is the exact same image the IBM Cloud Pak for Integration platform uses, as we will show in later scenarios. 

The ACE Certified Container image (ACEcc) is downloaded from the IBM Cloud Container Registry. To obtain images from this registry, you require an IBM entitlement key. You need to obtain this key once only.

Obtain an IBM entitlement key

Obtain an IBM entitlement key by visiting the following site:

You will need to log in with an IBM ID. It is free to register for an ID if you do not have one.

Pull the ACEcc image from IBM Container Registry

Log in to the IBM Cloud Container Registry by running this command, using cp as the user name, as the Docker server, and your entitlement key as the password: 

docker login -u cp -p myEntitlementKey
Use Docker to pull the required version of the ACEcc image, 

docker pull imageLocation
where imageLocation represents one of the listed image locations in the table shown in the following link:

In this demonstration we will use ACEcc image version

Here is the command we will use to pull the image from the IBM Container registry

$ docker pull

$ docker images

REPOSITORY                           TAG     IMAGE ID      CREATED   <none>  c4eb0ab3fb44  5 weeks ago 

After the image is pulled /downloaded, tag it so that it is easy to recall. 

For example :

$ docker tag c4eb0ab3fb44 ace-server-prod:

$ docker images 

REPOSITORY                    TAG          IMAGE ID      CREATED        

localhost/ace-server-prod  c4eb0ab3fb44   5 weeks ago 

Create initial-config directory

To enable dynamic configuration of the ACE Integration Server, ACEcc supports configuration injected into the image as files.

As the Integration Server starts, it checks for the folder /home/aceuser/initial-config within the container. 

Under this folder different types of configuration can be injected including BAR files. In this example, we only need to inject the BAR file itself.

We will create this directory structure on our host machine including a sub-directory called ‘bars’ under the initial-config directory.

$ mkdir -p /root/initial-config/bars

We will then copy the bar file to the bars folder 

$ cp /root/initial-config/bars

We will mount this file structure at /home/aceuser/initial-config when we launch the ACEcc using Docker.

Note : The details about what configuration can be dynamically passed to the container are available at

Run the ACEcc image using Docker

Now that we have copied the BAR file to the desired directory structure, we will launch the Integration Server in the Docker container by using the command,

docker run --name aceapp -p 7600:7600 -p 7800:7800 -p 7843:7843 --env

Let us look at the various command line options that we have passed to the docker run command.

--name :  Name assigned to the Docker container

-p : This option maps the container's port(s) to the host. The Integration Server by default enables ports 7600, 7800, 7843 during start-up and they serve following purpose:

7600 – An administrative listener port. Also used by the WebUI.
7800 – To listen to http traffic
7843 – To listen to https traffic

These ports are exposed to the VM host so that external applications can invoke the services hosted by message flows over these ports.

--env : To pass on an ENV variable to the container. You must accept the license to be able to launch the ACE Integration Server. You can optionally provide a name to your Integration Server using  env var ACE_SERVER_NAME

--mount : Attach a filesystem mount to the container.  In the example command above, 

src=/root/initial-config is local filesystem (indicated by ‘src’) that is being mounted on directory path /home/aceuser/initial-config (indicated by ‘dst’) inside the container 

localhost/ace-server-prod: : The ACE image that is being launched. 

Observe the console output. An example is shown as below 

2021-10-14T07:00:26.025Z Image created: 2021-09-02T11:12:32+00:00
2021-10-14T07:00:26.206Z ACE version: 12010
2021-10-14T07:00:26.206Z ACE level: S000-L210520.10620
2021-10-14T07:00:26.206Z ACE build type: Production, 64 bit, amd64_linux_2
2021-10-14T07:00:27.184Z Processing running flows in folder /home/aceuser/ace-server/run
2021-10-14T07:00:27.184Z Starting integration server
2021-10-14T07:00:27.184Z No default application name supplied. Using the integration server name
2021-10-14T07:00:27.188Z Waiting for integration server to be ready
2021-10-14T07:00:27.203Z Integration server not ready yet

2021-10-14 07:00:27.494870: BIP1990I: Integration server 'ACESERVER' starting initialization; version '' (64-bit)

2021-10-14 07:00:27.508716: BIP9905I: Initializing resource managers. 2021-10-14 07:00:32.049656: BIP9906I: Reading deployed resources. 2021-10-14 07:00:32.052868: BIP9907I: Initializing deployed resources. 2021-10-14 07:00:32.054524: BIP2155I: About to 'Initialize' the deployed resource 'HTTPEcho' of type
'Application'. 2021-10-14T07:00:32.208Z Integration server not ready yet 2021-10-14 07:00:32.281242: BIP2155I: About to 'Start' the deployed resource 'HTTPEcho' of type 'Application'. An http endpoint was registered on port '7800', path '/Echo'.

2021-10-14 07:00:32.293656: BIP3132I: The HTTP Listener has started listening on port '7800' for 'http' connections. 2021-10-14 07:00:32.293796: BIP1996I: Listening on HTTP URL '/Echo'. Started native listener for HTTP input node on port 7800 for URL /Echo

2021-10-14 07:00:32.293988: BIP2269I: Deployed resource 'Echo' (uuid='Echo',type='MessageFlow') started successfully. 2021-10-14 07:00:33.050416: BIP2866I: IBM App Connect Enterprise administration security is inactive.

2021-10-14 07:00:33.065014: BIP3132I: The HTTP Listener has started listening on port '7600' for 'RestAdmin http' connections.

2021-10-14 07:00:33.066482: BIP1991I: Integration server has finished initialization. 2021-10-14T07:00:37.217Z Integration server is ready 2021-10-14T07:00:37.217Z Metrics are disabled 2021-10-14T07:00:37.217Z Starting integration server commands API server

2021-10-14T07:00:37.217Z Integration API started

It is worth noting that in a single step, starting from a completely generic container platform, the container started within just a few seconds with a fully installed and configured Integration Server, and the BAR file is already deployed and running. Compare this to the time (and indeed the many steps) it would take in a traditional environment to install, configure and start up an Integration Server, and then deploy a BAR file to it. 

You can begin to see just how different this container-based approach is, and what opportunities this offers in terms of new ways of working. We can imagine how much easier it would be for example, to build a CI/CD pipeline, and how that pipeline could effectively include not just the code, but the full server configuration. It might also lead us to think differently about how we manage high availability and scalability. 

We’ll cover more on this and the broader cloud native approach in future posts.

Execute and Test the message flow

Let’s just check that we really do have a running integration application. As seen in the console output, the HTTP listener is listening on port 7800 and service endpoint is /Echo. You can verify the message flow execution by invoking the service via a web browser or curl command.

curl http://<hostname>:7800/Echo

Output :


Connecting to the WebUI of the Integration Server

In our start-up command, we chose to expose the web user interface via 7600.


However, it’s worth noting that in a true cloud native deployment we would avoid viewing and administering containers directly like this. A cloud native approach ( encourages administrative changes to be made by creating a new container rather than administering the one that is running (“immutable deployment”), and monitoring is generally done by viewing log files or using a visualization tool on them (“observability”).

We’ll discuss these changes to the way we work as we go through the more advanced examples.

Acknowledgement and thanks to Kim Clark for providing valuable technical input to this article.




Wed October 27, 2021 04:28 AM

Thanks Amar for the article. Looking forward to learn more from this series..