Java applications use the javax.jms
package to send or receive messages. This is a standard set of interfaces, specified by the JMS specification, for creating the connection to the EMS server, specifying the type of message to send, and creating the destination (topic or queue) to send to or receive from. You can find a description of the javax.jms
package in TIBCO Enterprise Message Service Java API Reference included in the online documentation.
The JMS specification also allows vendor-specific implementations of several features. TIBCO Enterprise Message Service provides a package containing classes and constants for all TIBCO-specific aspects of TIBCO Enterprise Message Service. See the description of the com.tibco.tibems package
in TIBCO Enterprise Message Service Java API Reference included in the online documentation.
TIBCO Enterprise Message Service includes parallel APIs for clients written in C or in C#. For details, see TIBCO Enterprise Message Service C & COBOL API Reference (online documentation), and TIBCO Enterprise Message Service .NET API Reference.
Figure 4 illustrates the interfaces involved in the EMS API.
Applications using the point to point (queues) or publish and subscribe (topics) models use the same interfaces to create objects. The JMS specification refers to these interfaces as common facilities because these interfaces create objects that can be used for either topics or queues.
Previous versions of the JMS specification defined specific interfaces for topics and for queues. While these interfaces continue to be supported, they may be deprecated in future releases of the JMS specification. You should use the common facilities in your new EMS applications and upgrade old applications to use the common facilities at your earliest convenience.
The JMS API interfaces prior to the JMS 1.1 specification have the same structure as the common facilities, but the interfaces are specific to topics or queues. Figure 5 illustrates the previous interface model used by the JMS API.
Table 3 summarizes the interfaces used in the JMS API.
The following sections describe many of the API interfaces. Queues and Topics are described in Chapter 3, Working With Destinations. Messages are described in Chapter 4, Working With Messages.
TIBCO Enterprise Message Service™ User’s Guide Software Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |