Java Message Producer.
An object created by a session that sends messages to a destination. The user can create a sender to a specific destination or create a generic sender that specifies the destination at the time the message is sent.
An object that is sent between consumers and producers; that is,from one application to another. A message has three main parts:
- A message header (required): Contains operational settings to identify and route messages
- A set of message properties (optional): Contains additional properties to support compatibility with other providers or users. It can be used to create custom fields or filters (selectors).
- A message body (optional): Allows users to create five types of messages (text message,map message,bytes message,stream message,and object message).
The message interface is extremely flexible and provides numerous ways to customize the contents of a message. |