Accessing a Resource
You can access a resource with an accessor method that is part of the component implementation.
Procedure
- Add a property of the resource type to the component.
- Generate or regenerate the component implementation. TIBCO Business Studio adds imports, fields, and resource accessor methods to the component's abstract implementation class. When the component is instantiated, the TIBCO ActiveMatrix platform injects the resource object into the component implementation.
- Access the resource using the generated accessor methods.
- After you are finished with the resource and any objects retrieved from the resource, close the objects.
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.