O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JMS Messages

While our simple examples only exchange string messages, there are several possible JMS message types. Every JMS message type is a subclass of javax.jms.Message. The different message types merely dictate the type of the message contents.

A JMS message consists of a header, a set of properties, and the message body.

JMS Header

The JMS header includes a standard set of fields defined in the JMS specification. The javax.jms.Message type includes a get and set method for each of the JMS header fields. The header fields are named metadata values used by the application to provide further information about the message.

The JMS header fields provide extra information about the JMS message. Many of the fields contain basic information about ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required