To deploy a Java application in a JVM server, you must install the OSGi bundles for the application in the OSGi framework of the target JVM server.
A CICS bundle can contain one or more OSGi bundles and services. Because the CICS bundle is the unit of deployment, all the OSGi bundles and services are managed together as part of the BUNDLE resource. The OSGi framework also manages the life cycle of the OSGi bundles and services, including the management of dependencies and versioning.
As a best practice, ensure that all OSGi bundles that comprise a Java application are deployed in the same CICS bundle. Using this method, you can manage the application as a single entity by using the BUNDLE resource. If there are dependencies between OSGi bundles, deploy them in the same CICS bundle. When you install the CICS BUNDLE resource, CICS ensures that all the dependencies between the OSGi bundles are resolved.
If you have dependencies on an OSGi bundle that contains a library of common code, the best practice is to create a separate CICS bundle for the library. In this case, it is important to install the CICS BUNDLE resource containing the library first. If you install the Java application before the CICS bundles that it depends on, the OSGi framework is unable to resolve the dependencies of the Java application.