Java CAPS JMS Reference

requestReplyTo(timeout, message, destName)

Description

Sends a message of type com.stc.connectors.jms.Message to the explicitly named destination, and receives the reply message by using Topic/QueueRequestor.

Parameters

Name 

Type 

Description 

timeout

java.lang.long

The timeout in milliseconds 

message

com.stc.connectors.jms.Message

The message object to send 

destName

java.lang.String

The destination name 

Return Value

Returns 

Type 

The reply message, if available during the timeout interval. 

com.stc.connectors.jms.Message

Exceptions

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