Skip to content

Home

Development

IDEs

API Explorer

Releases

Release notes

Martini Runtime

Martini Desktop

Martini Online

Feature requests

Bug reports

JmsMethods

The JmsMethods class contains one-liners for publishing and responding to JMS messages. Here are some examples:

Sample Gloop service showing how to use the `JmsMethods` one-liners

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}"
}