public class Producer extends Object
| Modifier and Type | Field and Description |
|---|---|
String |
identifier |
QueueManager |
manager |
javax.jms.MessageProducer |
producer |
String |
topic |
| Constructor and Description |
|---|
Producer(QueueManager manager,
String topic) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession() |
void |
sendMessage(Object toSend,
long timeToLive) |
void |
sendTextMessage(String text,
long timeToLive) |
void |
standBy() |
void |
stop() |
void |
wake() |
public javax.jms.MessageProducer producer
public QueueManager manager
public String topic
public String identifier
public Producer(QueueManager manager, String topic) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void sendTextMessage(String text, long timeToLive) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void sendMessage(Object toSend, long timeToLive) throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void standBy()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void stop()
throws javax.jms.JMSException
javax.jms.JMSExceptionpublic void closeSession()
throws javax.jms.JMSException
javax.jms.JMSExceptionCopyright © 2017. All Rights Reserved.