Java Programmer’s Checklist

Install

  • Install the EMS software release, which automatically includes the EMS jar files in the EMS_HOME/lib subdirectory.
  • Add the full pathnames for the following jar files to your CLASSPATH:
    jakarta.jms-api-2.0.3.jar
    tibjms.jar
  • Programs that use the unshared state failover API must add the following file to the CLASSPATH:
    tibjmsufo.jar
  • Programs that use OAuth 2.0 authentication must add the following file to the CLASSPATH:
    json_simple-1.1.jar
  • Programs that are set to operate in FIPS 140-2 compliant mode must add the following files to the CLASSPATH:
    bc-fips-1.0.2.4.jar
    bctls-fips-1.0.17.jar
Note: All jar files listed in this section are located in the lib subdirectory of the TIBCO Enterprise Message Service installation directory.

Code

Import the following packages into your EMS application:

import javax.jms.*;
import javax.naming.*;

Compile

Compile your EMS application with the javac compiler to generate a .class file.

For example:

javac MyApp.java

generates a MyApp.class file.

Run

Use the java command to execute your EMS .class file.

For example:

java MyApp