Skip to content

Home

Introduction

Development

IDEs

Services

Service manager

API Explorer

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