+

Search Tips | Advanced Search

The XMS object model

The XMS API is an object-oriented interface. The XMS object model is based on the JMS 1.1 object model.

The following list summarizes the main XMS classes, or types of object:

Figure 1 shows these objects and their relationships. This diagram shows the main types of XMS object: ConnectionFactory, Connection, Session, MessageProducer, MessageConsumer, Message, and Destination. An application uses a connection factory to create a connection, and uses a connection to create sessions. The application can then use a session to create messages, message producers, and message consumers. The application uses a message producer to send messages to a destination, and uses a message consumer to receive messages sent to a destination.

Figure 1. XMS objects and their relationships

In .NET, the XMS classes are defined as a set of .NET interfaces. When you are coding XMS .NET applications, you need only the declared interfaces.

The XMS object model is based on the domain independent interfaces that are described in Java Message Service Specification, Version 1.1. Domain-specific classes, such as Topic, TopicPublisher, and TopicSubscriber, are not provided.