Service Health Check Sample for Annotations

Samples specific to the Service Health Check Annotation feature are available in <TIBCO_HOME>/administrator/<version>/samples/healthcheck/annotations/sample.zip.

The sample.zip contains the following sample TIBCO Business Studio projects to be imported into TIBCO Business Studio.

  • com.sample.demo1: Folder containing the DAA, Client_httpProxy_without_auth.daa. It includes a SOAP-Java1-SOAP sample implementation that invokes SOAP-Java2 (com.sample.service). The Custom Service Health Check method is present in the Java1 implementation class that you can customize.
  • com.sample.service: Folder containing the DAA, Service_httpProxy_without_auth.daa. The Custom Service Health Check method is present in the Java2 implementation class that you can customize.

In addition to the above projects, you will need the following sample WSDL and sample SOAPUI project provided in <TIBCO_HOME>/administrator/<version>/samples/healthcheck/:

  • HealthCheck.wsdl: A concrete WSDL describing the Service Health Check contract provided by each ActiveMatrix SOAP/HTTP Service out-of-the-box. The WSDL describes the schema for the Service Health Check request and response in terms of all the Elements and their attributes. The WSDL also includes Sample SOAP/HTTP Bindings for SOAP Versions 1.1 and 1.2.
  • HealthCheckSOAPProject-soapui-project.xml: A sample SOAP UI project that demonstrates the salient features of the Service Health Check functionality using a SOAP Binding and Java Implementation Type (IT).

Prerequisites

If you have enabled the Service Health Check feature, the Service Health Check Annotation feature is enabled by default. For information on enabling Service Health Check, refer to Enabling Service Health Check in the TIBCO ActiveMatrix Service Grid Custom Actions guide.

Procedure

  1. Deploy the DAA for the service: /service/Deployment Artifacts/Service_httpProxy_without_auth.daa.
  2. Deploy the DAA for the client: /demo1/Deployment Artifacts/Client_httpProxy_without_auth.daa.
  3. Import the HealthCheckSOAPProject-soapui-project into SOAP UI. This project is applicable for SOAP version 1.1.
  4. Obtain the Endpoint URL for the service.
    1. In TIBCO ActiveMatrix Administrator, click Applications.
    2. Select the application, demo1.
    3. Click on the Status tab.
    4. Click on the Binding Status hyperlink.
    5. Select the service binding, Client_1.0.0.v2015-11-18-1540/different1b/SOAPService_Binding1 and click Generate WSDL.

      When the WSDL is generated, use the following endpoint URL from the address element:

      http://0.0.0.0:2200/different/Client_httpProxy_without_auth
  5. Execute the Service Health Check request (Request 1) on the Endpoint URL of the service to initiate a SOAP request.

    The Service Health Check response shows the health status of the participating entities.

    The entire sample response, SampleSOAPResponse.txt, is also available in <TIBCO_HOME>/administrator/<version>/samples/healthcheck/annotations directory.