Java CAPS JMS Reference

requestReply(timeout, message)

Description

Sends a message of type com.stc.connectors.jms.Message to the destination configured in the Connectivity Map Editor, and receives the reply message by using Topic/QueueRequestor during the specified timeout interval.

Parameters

Name 

Type 

Description 

timeout

java.lang.long

The timeout in milliseconds 

message

com.stc.connectors.jms.Message

The message object to send 

Return Value

Returns 

Type 

The reply message, if available during the timeout interval. 

com.stc.connectors.jms.Message

Exceptions

Throws JMSException if a message is null, the JMS provider fails to send and receive the message due to an internal error, or timeout expires.