jmsReceive($destination)
This function exists purely for test purposes and is not intended to be used in production systems.
It can be used to receive a message from a queue or a topic and thus check the connection and functionality of a message queue system.
In order for a message to be received, a target configuration must be created in the JMS service. The queue manager defined in the configuration must be accessible at the specified address in order for the message to be received successfully, otherwise an error will be displayed. IBM MQ, for example, can be used as the server here. This must be created and started separately. To receive a message, a message must also have already been sent. Translated with DeepL.com (free version)
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| destination | Character string (target configuration) | Name of a target configuration in the JMS service | yes | - |
null, or the first message of the queue.
jmsReceive("Topic1");
jmsReceive("Queue1");