Accessing a Resource

You can access a resource with an accessor method that is part of the component implementation.

Procedure

  1. Add a property of the resource type to the component.
  2. 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.
  3. Access the resource using the generated accessor methods.
  4. After you are finished with the resource and any objects retrieved from the resource, close the objects.