JMS/AMQP REST routing
This policy routes REST requests to JMS or AMQP destinations.
The configuration defines how REST requests are routed to JMS or AMQP messaging systems. It includes connection details, destination settings, reply handling behavior, message lifetime settings, and any custom properties required for message delivery or processing.
In IBM API Studio, this policy is identified by
the kind Route.
Example of a JMS/AMQP REST routing policy:
kind: Route
apiVersion: api.ibm.com/v2
metadata:
name: jmsamqp-routing
version: 1.0
namespace: wm_project
spec:
messageConfig:
$ref: wm_project:MessageConfig:1.0
---
kind: MessageConfig
apiVersion: api.ibm.com/v2
metadata:
name: MessageConfig
version: 1.0
namespace: wm_project
spec:
connectionAlias: DEFAULT_IS_JMS_CONNECTION
destination:
name: destination
type: queue # queue or topic
replyTo:
name: replyto
type: topic # queue or topic
ttl: 10ms
timeToWait: 10ms
deliveryMode: non_persistent # persistent or non_persistent
property:
- key: ${request.path}
value: test-value
To invoke the JMS/AMQP REST routing policy, you can specify:
| Type | Description |
|---|---|
| spec |
References the message configuration to use for JMS/AMQP REST routing. The value is provided as a |
To configure the messageConfig, you can specify:
| Type | Description |
|---|---|
| spec |
|