!--a11y-->
Creating a Message Producer to a Queue 
The message producer in a queue is QueueSender. Use it to send messages to a queue destination.
To create a message producer to a queue use the following source:

// create the message producer QueueSender queueSender = queueSession.createSender(queue); |
Having obtained a QueueSender, use it to send messages to the specified queue destination.

For an example of how to create a message producer, see Queue Sender and Receiver.
