Classes

QueueRequestor

The QueueRequestor class makes it easier to send a message and wait for a reply.

Constructor
public QueueRequestor(QueueSession session, Queue queue) throws JMSException

Creates a new QueueRequestor on the specified queue using the specified queue session.

close

Closes this QueueRequestor and releases any resources it holds.

request
public Message request(Message reqMessage) throws JMSException

Sends a request message and waits for a reply.

TopicRequestor

Like the QueueRequestor class, the TopicRequestor class makes it easier to send a message and wait for a reply.

Constructor
public TopicRequestor(TopicSession session, Topic topic) throws JMSException

Creates a new TopicRequestor on the specified topic using the ...

Get Special Edition Using Java™ 2 Enterprise Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.