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 - BPM Edition projects to be imported into TIBCO Business Studio - BPM Edition.
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 theJava1
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 theJava2
implementation class that you can customize.
In addition to the above projects, you 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 Service Grid 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).
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 TIBCO ActiveMatrix® Service GridPolicy Director Governance Custom Actions.
- Procedure
- Deploy the DAA for the service:
/service/Deployment Artifacts/Service_httpProxy_without_auth.daa
. - Deploy the DAA for the client:
/demo1/Deployment Artifacts/Client_httpProxy_without_auth.daa
. - Import the
HealthCheckSOAPProject-soapui-project
into SOAP UI. This project is applicable for SOAP version 1.1. - Obtain the Endpoint URL for the service.
- In TIBCO ActiveMatrix Administrator, click Applications.
- Select the application,
demo1
. - Click on the Status tab.
- Click on the Binding Status hyperlink.
- 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
- 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.