JMS message producers

 

+

Search Tips   |   Advanced Search

 

The JMS session also acts as a factory for JMS message producers. A JMS message producer is used to send messages to a specific destination on the JMS provider. A JMS message producer does not support concurrent use.

The target destination is specified when creating the message producer. However, it is possible to pass a value of null when creating the message producer. When using a message producer created in this manner, the target destination must be specified on every invocation of the send method.

The message producer can also be used to specify certain properties of messages that it sends, such as delivery mode, priority, and time-to-live.

The message producer interfaces defined within the JMS specification...

Common interface Domain-specific interfaces

Point-to-Point Publish/Subscribe
MessageProducer QueueSender TopicPublisher

The code required to create and send a message...

Next