Skip to content

Toro Cloud Dev Center


JmsFunctions

The Jms class contains functions for publishing and responding to JMS messages. Here are some examples:

Sample service showing how to use the `Jms` functions

1
2
3
4
5
6
7
// Send a JMS message to a queue
"queue://${destination}".publishString("Hello")

// Queue prints the reply message when it receives a reply
"queue://${destination}".publishString("Hi") { message ->
    println "Replied with: ${message}"
}