Java CAPS JMS Reference

sendTo(message, destination)

Description

Sends a message of type com.stc.connectors.jms.Message to the specified destination, using the JMS session’s default settings for message priority, time to live, and delivery mode.

Parameters

Name 

Type 

Description 

msg

com.stc.connectors.jms.Message

The message to be sent. 

destination

java.lang.String

The name of the topic or queue to which this method should send the message. 

Return Value

None.

Exceptions

Throws JMSException if a message is null or if the JMS provider fails to send the message due to an internal error.