Generating a Custom Service Health Check Method

You can generate a Custom Service Health Check method for either an existing or a new Application/Composite using TIBCO Business Studio - BPM Edition. You can then implement your own Service Health Check method by coding this generated method.

    Procedure
  1. Select a Java Implementation Type Component in the Composite.
  2. Right-click and select Generate Java Implementation. The following screen is displayed:

  3. Under Code Generation Options, select the Generate Annotated Custom Health Check Method checkbox. This checkbox is not selected by default.
    The Handle Shared Resources and Handle Component References checkboxes are now enabled.
  4. Select the following checkboxes, as required:
    Handle Shared Resources: Indicates whether the Service Health Check for Shared Resources must be handled by the Custom Service Health Check method or the Base Service Health Check functionality. If this checkbox is selected, it indicates that the Service Health Check is handled by the Custom Service Health Check method. That is, ActiveMatrix Service Grid does NOT perform Service Health Check on the Component's Shared Resources. If this checkbox is not selected, it indicates that the Service Health Check is handled by the Base Service Health Check functionality. This checkbox is not selected by default.
    Handle Component References: Indicates whether the Service Health Check for Component References must be handled by the Custom Service Health Check method or the Base Service Health Check functionality. If this checkbox is selected, it indicates that the Service Health Check is handled by the Custom Service Health Check method. That is, ActiveMatrix Service Grid does NOT perform Service Health Check on the Component References of this Component. If this checkbox is not selected, it indicates that the Service Health Check is handled by the Base Service Health Check functionality. This checkbox is not selected by default.

    For more details on various combinations, seeCombinations of Custom Service Health Check Operations.

    Note:
    • If the Overwrite Concrete Class checkbox is not selected and the Generate Annotated Custom Health Check Method checkbox is selected, TIBCO Business Studio - BPM Edition generates a Custom Service Health Check method without modifying the rest of the implementation class.
    • If a Custom Service Health Check method already exists and if the Overwrite Concrete Class checkbox is not selected and the Generate Annotated Custom Health Check Method checkbox is selected, TIBCO Business Studio - BPM Edition does NOT make any modifications to the implementation class.
  5. Click Finish.
    The code is generated in the implementation class. For an example of the updated implementation class, see Sample of Custom Service Health Check Method.
    Note: The Generate Java Implementation wizard always overwrites the abstract class. Take a backup of the abstract class before executing this wizard.