|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for sending messages using a MessageProducer
Method Summary | |
void |
close()
Close the underlying MessageProducer |
javax.jms.Destination |
getDestination()
Return the destination associated with the MessageProducer |
void |
send(javax.jms.Message message,
int count)
Send messages to a destination |
void |
send(javax.jms.Message message,
int count,
long timeToLive)
Send messages to a destination |
void |
send(javax.jms.Message message,
int count,
MessagePopulator populator)
Send messages to a destination, invoking a message populator prior to each message being sent |
void |
send(javax.jms.Message message,
int count,
MessagePopulator populator,
long timeToLive)
Send messages to a destination, invoking a message populator prior to each message being sent |
Method Detail |
public void send(javax.jms.Message message, int count) throws javax.jms.JMSException
message
- the message to sendcount
- the number of times to send the messagejavax.jms.JMSException
- if any of the JMS operations failpublic void send(javax.jms.Message message, int count, long timeToLive) throws javax.jms.JMSException
message
- the message to sendcount
- the number of times to send the messagetimeToLive
- the message time-to-livejavax.jms.JMSException
- if any of the JMS operations failpublic void send(javax.jms.Message message, int count, MessagePopulator populator) throws javax.jms.JMSException
message
- the message to sendcount
- the number of times to send the messagepopulator
- the message populatorjavax.jms.JMSException
- if any of the JMS operations failpublic void send(javax.jms.Message message, int count, MessagePopulator populator, long timeToLive) throws javax.jms.JMSException
message
- the message to sendcount
- the number of times to send the messagepopulator
- the message populatortimeToLive
- the message time-to-livejavax.jms.JMSException
- if any of the JMS operations failpublic javax.jms.Destination getDestination() throws javax.jms.JMSException
javax.jms.JMSException
- if the operation failspublic void close() throws javax.jms.JMSException
javax.jms.JMSException
- if the operation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |