Uses of Interface
jakarta.jms.JMSProducer
Package
Description
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
-
Uses of JMSProducer in jakarta.jms
Modifier and TypeMethodDescriptionJMSProducer.clearProperties()
Clears any message properties set on thisJMSProducer
JMSContext.createProducer()
Creates a newJMSProducer
object which can be used to configure and send messagesJMSProducer.send
(Destination destination, byte[] body) Send aBytesMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.send
(Destination destination, Message message) Sends a message to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.send
(Destination destination, Serializable body) Send anObjectMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.send
(Destination destination, String body) Send aTextMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.send
(Destination destination, Map<String, Object> body) Send aMapMessage
with the specified body to the specified destination, using any send options, message properties and message headers that have been defined on thisJMSProducer
.JMSProducer.setAsync
(CompletionListener completionListener) Specifies whether subsequent calls tosend
on thisJMSProducer
object should be synchronous or asynchronous.JMSProducer.setDeliveryDelay
(long deliveryDelay) Sets the minimum length of time in milliseconds that must elapse after a message is sent before the Jakarta Messaging provider may deliver the message to a consumer.JMSProducer.setDeliveryMode
(int deliveryMode) Specifies the delivery mode of messages that are sent using thisJMSProducer
JMSProducer.setDisableMessageID
(boolean value) Specifies whether message IDs may be disabled for messages that are sent using thisJMSProducer
JMSProducer.setDisableMessageTimestamp
(boolean value) Specifies whether message timestamps may be disabled for messages that are sent using thisJMSProducer
.JMSProducer.setJMSCorrelationID
(String correlationID) Specifies that messages sent using thisJMSProducer
will have theirJMSCorrelationID
header value set to the specified correlation ID, where correlation ID is specified as aString
.JMSProducer.setJMSCorrelationIDAsBytes
(byte[] correlationID) Specifies that messages sent using thisJMSProducer
will have theirJMSCorrelationID
header value set to the specified correlation ID, where correlation ID is specified as an array of bytes.JMSProducer.setJMSReplyTo
(Destination replyTo) Specifies that messages sent using thisJMSProducer
will have theirJMSReplyTo
header value set to the specifiedDestination
object.JMSProducer.setJMSType
(String type) Specifies that messages sent using thisJMSProducer
will have theirJMSType
header value set to the specified message type.JMSProducer.setPriority
(int priority) Specifies the priority of messages that are sent using thisJMSProducer
JMSProducer.setProperty
(String name, boolean value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedboolean
value.JMSProducer.setProperty
(String name, byte value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedbyte
value.JMSProducer.setProperty
(String name, double value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifieddouble
value.JMSProducer.setProperty
(String name, float value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedfloat
value.JMSProducer.setProperty
(String name, int value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedint
value.JMSProducer.setProperty
(String name, long value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedlong
value.JMSProducer.setProperty
(String name, short value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedshort
value.JMSProducer.setProperty
(String name, Object value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specified Java object value.JMSProducer.setProperty
(String name, String value) Specifies that messages sent using thisJMSProducer
will have the specified property set to the specifiedString
value.JMSProducer.setTimeToLive
(long timeToLive) Specifies the time to live of messages that are sent using thisJMSProducer
.