Adding resources to a CICS bundle project
When you add resource definitions to a CICS® bundle project, CICS dynamically creates resources for you when you deploy and install the bundle in the CICS region.
Before you begin
You must create a CICS bundle project before you can add resources to it. For more information, see Creating a CICS bundle project.
About this task
Some characteristics of CICS resources change because they are defined in a CICS bundle and dynamically created as part of a bundle deployment. The lifecycles of CICS resources that are created in this way cannot be managed independently of the BUNDLE resource. They must be managed through the CICS bundle. Because of bundle and resource lifecycle interdependency, application architects must carefully consider which set of resources for an application should have their lifecycle tied to the lifecycle of a CICS bundle. To understand more about the potential implications of defining resources in CICS bundles, see Characteristics of bundled resources in the CICS TS V5.4.0 product documentation.
You can reference one or many CICS bundles in an application bundle. By packaging your application in this way, you can deploy an application and its bundles as a single entity to CICS, making it easier to update and manage the application in CICS. A CICS bundle can be installed in CICS regions by more than one application if it contains only resources that are eligible for multi-versioning.
- PROGRAM resources defined in CICS bundles that are part of the application
- LIBRARY resources defined in CICS bundles that are part of the application
- Policies resources defined in CICS bundles that are part of the application
- Statements of application entry points
- Any resource that is defined as a dependency, or import, for the application
- DB2® Package Set resources defined in CICS bundles that are part of the application
A CICS bundle that contains other resource types cannot be included in other applications that are installed in the same CICS regions in the platform, and you cannot add it to the platform if it has already been installed for an application. If your application requires a resource that is not supported for multi-versioning and has already been used in a CICS bundle that has been installed in the target region type in the platform, create a new CICS bundle project. Declare the resource as a dependency for the new CICS bundle, by specifying an import in the manifest file. Then include the new CICS bundle project in your application project. For instructions to declare a resource as a dependency, see Defining bundle dependencies.
To define a resource in a CICS bundle project, follow these steps:
Procedure
Results
What to do next
To edit the resource in the resource editor, follow the instructions in Editing resources defined in a CICS bundle project.
When you have completed your resource definition, you can deploy the CICS bundle project to zFS, or package the bundle for deployment with an application or platform bundle. See Deploying a CICS bundle for more information.