Java CAPS JMS Reference

receiveNoWait(destination)

Description

Receives the next message of type com.stc.connectors.jms.Message from the specified message destination if a message is immediately available.

Parameters

Name 

Type 

Description 

destination

java.lang.String

The name of the topic or queue from which this method receives messages. 

Return Value

Returns 

Type 

The next message produced, or null if no message is available. 

com.stc.connectors.jms.Message

Exceptions

Throws JMSException.