Java CAPS JMS Reference

sendTo(message, destination, deliveryMode, priority, timeToLive)

Description

Sends a message of type com.stc.connectors.jms.Message to the specified destination, using the specified parameters.

Parameters

Name 

Type 

Description 

message

com.stc.connectors.jms.Message

The message variable type. 

destination

java.lang.String

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

deliveryMode

int

The message delivery mode. 1 indicates non-persistent messages, 2 indicates persistent messages. 

priority

int

The message priority (0 through 9, with 9 being the highest priority). 

timeToLive

long

The length of time in milliseconds before the message expires. 

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.