TIBCO Hawk AMI Java API Sample Application

The TIBCO Hawk AMI Java API sample directory contains the following files:

AmiSample.Java:a sample application designed to illustrate how to instrument a Java application using the TIBCO Hawk AMI API for Java.
Spot.java: a simple GUI application using TIBCO Hawk AMI API for Java.
SpotAmi.java: AMI Java API instrumentation for the Spot application.

This sample demonstrates how an existing application, Spot.java, can be instrumented with the AMI Java API.

The AMI sample spot.java has the following AMI application names:

Display name: Spot
Internal name: COM.TIBCO.hawk.ami_api.java.Spot

Executing the Sample Program

In order to compile and execute this sample, the following must be in your Java CLASSPATH:

ami.jar and util.jar from the TIBCO Hawk java directory
tibrvj.jar from the TIBCO Rendezvous java directory

Note 

It is recommended that you use Java 1.7 or higher.

The Spot application is executed with the following command:

java Spot -rvd_session <service> <network> <daemon> hawk_example.props