|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.mqe.jms.MQeMessageProducer | +--com.ibm.mqe.jms.MQeQueueSender
A client uses a QueueSender
to send messages to a queue.
In the case that the QueueSender with an unidentified Queue is created, the methods that assume the Queue has been identified throw an Invalid Destination Exception.
MessageProducer
Method Summary | |
javax.jms.Queue |
getQueue()
Get the queue associated with this queue sender. |
void |
send(javax.jms.Message message)
Send a message to the queue. |
void |
send(javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
Send a message specifying delivery mode, priority and time to live to the queue. |
void |
send(javax.jms.Queue queue,
javax.jms.Message message)
Send a message to a queue for an unidentified message producer. |
void |
send(javax.jms.Queue queue,
javax.jms.Message message,
int deliveryMode,
int priority,
long timeToLive)
Send a message to a queue for an unidentified message producer, specifying delivery mode, priority and time to live. |
Methods inherited from class com.ibm.mqe.jms.MQeMessageProducer |
close, getDeliveryMode, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.MessageProducer |
close, getDeliveryMode, getDisableMessageID, getDisableMessageTimestamp, getPriority, getTimeToLive, setDeliveryMode, setDisableMessageID, setDisableMessageTimestamp, setPriority, setTimeToLive |
Method Detail |
public javax.jms.Queue getQueue() throws javax.jms.JMSException
getQueue
in interface javax.jms.QueueSender
javax.jms.JMSException
- if JMS fails to get queue for
this queue sender
due to some internal error.public void send(javax.jms.Message message) throws javax.jms.JMSException
send
in interface javax.jms.QueueSender
message
- the message to be sent
javax.jms.JMSException
- if JMS fails to send the message
due to some internal error.
javax.jms.MessageFormatException
- if invalid message specified
javax.jms.InvalidDestinationException
- if a client uses
this method with a Queue sender with
an invalid queue.public void send(javax.jms.Message message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
send
in interface javax.jms.QueueSender
message
- the message to be sentdeliveryMode
- the delivery mode to usepriority
- the priority for this messagetimeToLive
- the message's lifetime (in milliseconds).
javax.jms.JMSException
- if JMS fails to send the message
due to some internal error.
javax.jms.MessageFormatException
- if invalid message specified
javax.jms.InvalidDestinationException
- if a client uses
this method with a Queue sender with
an invalid queue.public void send(javax.jms.Queue queue, javax.jms.Message message) throws javax.jms.JMSException
Typically a JMS message producer is assigned a queue at creation time; however, JMS also supports unidentified message producers which require that the queue be supplied on every message send.
send
in interface javax.jms.QueueSender
queue
- the queue that this message should be sent tomessage
- the message to be sent
javax.jms.JMSException
- if JMS fails to send the message
due to some internal error.
javax.jms.MessageFormatException
- if invalid message specified
javax.jms.InvalidDestinationException
- if a client uses
this method with an invalid queue.public void send(javax.jms.Queue queue, javax.jms.Message message, int deliveryMode, int priority, long timeToLive) throws javax.jms.JMSException
Typically a JMS message producer is assigned a queue at creation time; however, JMS also supports unidentified message producers which require that the queue be supplied on every message send.
send
in interface javax.jms.QueueSender
queue
- the queue that this message should be sent tomessage
- the message to be sentdeliveryMode
- the delivery mode to usepriority
- the priority for this messagetimeToLive
- the message's lifetime (in milliseconds).
javax.jms.JMSException
- if JMS fails to send the message
due to some internal error.
javax.jms.MessageFormatException
- if invalid message specified
javax.jms.InvalidDestinationException
- if a client uses
this method with an invalid queue.
|
Websphere MQ Everyplace | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |