Creating a library
Create a library to contain a logical grouping of related code, data, or both, that can be reused.
About this task
The order in which you create resources is flexible. You can begin by creating an application and adding resources to it, or you can begin by creating libraries of resources, then create an application that refers to them. Libraries are optional; create one if you want to reuse resources.
Two types of library exist in IBM® App Connect Enterprise: shared libraries and static libraries. A shared library can be deployed directly to an integration server or in a BAR file with referencing applications. If that shared library is updated, the changes are immediately available to all applications or shared libraries that refer to it.
A static library is deployed with the application that references it. Each application that references that static library is deployed with its own private copy of that library. If a static library is updated, each application that references it must be repackaged and redeployed with the updated static library.
A static library is the original container that was introduced in WebSphere® Message Broker Version 8.0. In IBM Integration Bus 10.0 and later, the preferred way to share resources is to store them in a shared library. If you want each application to use a different version of the contained resource, you can use a static library.
For more information about libraries, see Libraries.
Procedure
To create a library, complete the following steps.
Results
A library is created and is shown in the Application Development view. You can expand the library to view library references. Shared libraries are represented by the shared library icon . Static libraries are represented by the static library icon . A shared library that is referenced by an application or another shared library is shown in the Referenced Libraries folder for that application or shared library. A static library that is referenced by an application or another static library is shown in the Included Libraries folder for that application or static library.
What to do next
- Create an application by following the instructions in Creating an application.
- To create resources in a library, see Creating resources in a library.
- To add and remove project references in the library, see Referencing resources in other libraries.