Sends a message of type java.lang.String to the specified destination, using the JMS session’s default settings for message priority, time to live, and delivery mode.
Name |
Type |
Description |
---|---|---|
payload |
java.lang.String |
The text in the message. |
destination |
java.lang.String |
The name of the topic or queue to which this method should send the message. |
None.
Throws JMSException if a message is null or if the JMS provider fails to send the message due to an internal error.