Java CAPS JMS Reference

receive(timeout)

Description

Receives the next message of type com.stc.connectors.jms.Message that arrives from the destination configured in the Connectivity Map Editor during the specified timeout interval.

Parameters

Name 

Type 

Description 

timeout

long

The number of milliseconds before the receive method times out.

Return Value

Returns 

Type 

The next message produced, or null if the timeout expires. 

com.stc.connectors.jms.Message

Exceptions

Throws JMSException.