![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
To get a better understanding and illustration of how the various JMS objects relate to each other, refer to the JMS Specification and to the samples client applications provided with EMS.
• JMSContext is used to create messages, as well as JMS consumers and JMS producers. Each JMS context uses one session and one connection, but does not expose those. Additionally, multiple JMS context objects can share the same connection.
• JMSConsumer is a message consumer that has the ability to receive a message body without the need to use a Message object.
• JMSProducer is similar to an anonymous message producer, and provides a convenient API for configuring delivery options, message properties, and message headers.Methods in the Simplified API throw unchecked exceptions rather than checked exceptions. For a sample showing the Simplified API in use, see the new Java sample file called tibjmsJMSContextSendRecv.java. This sample file demonstrates the Simplified API in the simplest possible way; for greater detail, refer to the Java API Reference Pages.In the JMS 1.1 specification, 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.
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |