Java Approach

TPM REST API consume requests that are made from a Java program.

All .jar files are in the TIBCO_HOME\tpm-rest\Version_Number\lib directory. Before processing requests from a Java program, you need to update the classpath environment variable.

For more information on TPM REST API JavaDoc, see Java API Reference Pages.

The following is an example to invoke the IParticipants API from a Java program:

import com.tibco.ax.fw.cfg.api.*;
RepositoryConnection conn = new RepositoryConnection("jdbc:oracle:thin:@dbserver:1521:XE", "oracle.jdbc.OracleDriver", "bc", "bc");

IParticipants iParticipants = conn.getParticipantsHelper();

Location loc = iParticipants.retrieveParticipantBusinessLocation("partner1”, "Headquarters");

System.out.print(loc.getAddress1());