- All Known Subinterfaces:
- QueueReceiver, TopicSubscriber
- See Also:
- Top Examples, Source Code,
Session
public void close()
throws JMSException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public MessageListener getMessageListener()
throws JMSException
- See Also:
setMessageListener(javax.jms.MessageListener)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getMessageSelector()
throws JMSException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Message receive()
throws JMSException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[937]Send JMS message use TemporaryQueue
By Anonymous on 2004/09/27 13:50:21 Rate
//session is an instance of QueueSession
TemporaryQueue tmpQueue = session.createTemporaryQueue ( ) ;
.. sending msg to the TemporaryQueue
// waiting reply
MessageConsumer consumer = session.createReceiver ( tmpQueue ) ;
//queueConnection is instance of QueueConnection
queueConnection.start ( ) ;
Message message = consumer.receive ( ) ;
queueConnection.stop ( ) ;
... do something with the message
TemporaryQueue tmpReplyQueue = ( TemporaryQueue ) msg.getJMSReplyTo ( ) ;
QueueSender sender = session.createSender ( tmpReplyQueue ) ;
... send the reply msg to the tmpReplyQueue ...
public Message receive(long timeout)
throws JMSException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Message receiveNoWait()
throws JMSException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setMessageListener(MessageListener listener)
throws JMSException
- See Also:
getMessageListener()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples