com.ibm.mq.jms
Class MQQueueSender

java.lang.Object
  |
  +--com.ibm.mq.jms.MQMessageProducer
        |
        +--com.ibm.mq.jms.MQQueueSender
All Implemented Interfaces:
javax.jms.MessageProducer, javax.jms.QueueSender

public class MQQueueSender
extends MQMessageProducer
implements javax.jms.QueueSender

A client uses an MQQueueSender to send messages to a queue. A QueueSender is normally associated with a particular queue. However, it is possible to create an unidentified QueueSender that is not associated with any given queue.

See Also:
MessageProducer

Method Summary
 void close()
          Close the sender.
 javax.jms.Queue getQueue()
          Gets the Queue associated with this sender.
 
Methods inherited from class com.ibm.mq.jms.MQMessageProducer
getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.QueueSender
send, send, send, send
 
Methods inherited from interface javax.jms.MessageProducer
getDeliveryMode, getDestination, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, send, send, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive
 

Method Detail

close

public void close()
           throws javax.jms.JMSException
Close the sender. Releases underlying resources associated with this sender.

Specified by:
close in interface javax.jms.MessageProducer
Overrides:
close in class MQMessageProducer
Throws:
javax.jms.JMSException - if underlying MQ calls fail.

getQueue

public javax.jms.Queue getQueue()
                         throws javax.jms.JMSException
Gets the Queue associated with this sender.

Specified by:
getQueue in interface javax.jms.QueueSender
javax.jms.JMSException

(c) Copyright IBM Corp. 2005. All Rights Reserved.