Skip to main content
HealthShare Health Connect 2024.3
AskMe (beta)
Loading icon

Retrieving RabbitMQ Messages from a Production

An InterSystems IRIS interoperability production can be a RabbitMQ consumer. You have two options: use a built-in business service or build your own business service that uses the RabbitMQ inbound adapter. There is also an API for use outside of a production.

Using the Business Service

InterSystems provides a built-in business service that can be used to retrieve RabbitMQ messages without needing to write custom code. To use this business service:

  1. Add EnsLib.RabbitMQ.ServiceOpens in a new tab to your production. See Adding Business Hosts.

  2. Configure settings of this business host as described in RabbitMQ Settings.

The business service periodically polls the configured RabbitMQ queue for new messages. For each new message, the business service creates a message of type EnsLib.RabbitMQ.MessageOpens in a new tab and populates that with the message contents, and then forwards the message to the configured targets within the production using asynchronous requests.

For details on this message class, see RabbitMQ Message Class.

Using the Adapter

If the built-in business service does not meet your needs, you can directly use the RabbitMQ inbound adapter as follows:

  1. Create a custom business service class:

  2. Add your business service to your production. See Adding Business Hosts.

  3. Configure settings of this business host as described in RabbitMQ Settings.

See Also

FeedbackOpens in a new tab