JMS Control: Using Java Message Service Queues and Topics from Your Web Service

JMS (Java Message Service) is a Java API for communicating with messaging systems. Messaging systems are often packaged as products known as Message-Oriented Middleware (MOMs). WebLogic Server includes built in messaging capabilities via WebLogic JMS, but can also work with third-party MOMs. Messaging systems are often used in enterprise applications to communicate with legacy systems, or for communication between business components running in different environments or on different hosts.

The JMS control enables WebLogic Workshop web services to easily interact with messaging systems that provide a JMS implementation. A specific JMS control is associated with particular facilities of the messaging system. Once a JMS control is defined, web services may use it like any other WebLogic Workshop control.

To learn about WebLogic Workshop controls, see Controls: Using Resources from a Web Service.

# Topics Included in This Section

Overview: Messaging Systems and JMS

Describes messaging services in general and the Java Message Service in particular

Messaging Scenarios Supported by the JMS Control

Describes appropriate scenarios in which the JMS control may be used.

Messaging Scenarios Not Supported by the JMS Control

Describes scenarios in which the JMS control may not be used.

Creating a New JMS Control

Describes how to create and configure a JMS control.

Sending and Receiving XML Messages with a JMS Control

Describes how to apply XML maps to the messages sent and received via a JMS control. XML maps provide an easy and automatic way to convert between XML messages and Java objects. XML maps can also be used to encode and extract JMS headers and properties in or from messages.

Manipulating JMS Message Headers and Message Properties in a JMS Control

Describes how to apply XML maps to the headers and properties of messages sent and received by the JMS control.

Using a JMS Control

Describes how to use an existing JMS control from within a web service.

# JMS Control Samples

SimpleJMS.jws Sample

CustomJMSClient.jws Sample

Related Topics

Controls: Using Resources from a Web Service