Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Info

This page applies to you if you want the Customerdata service to publish Aggregate events to a queue.

Info

This feature is available from Customerdata Service version 2.0.0 and up.

 


Table of Contents

This will explain how the Customerdata service can be configured to publish aggregate event messages to a queue. Please see Introduction to Aggregate events for more information.
Only RabbitMQ is supported as queue.

Spring profile configuration

To enable message publishing, add the profile 'entity-event-publisher-amqp' to CDS's bootstrap.yml in <Blueriq installation folder>\Services\blueriq-customerdata\conf. Create bootstrap.yml if it does not exist.

Code Block
languagetext
titlebootstrap.yml
spring: 
  profiles: 
    active: entity-event-publisher-amqp

Event publisher configuration

To be able to publish event messages, the event channel needs to be configured in blueriq-customerdata-odata-service-v1-entity-event-publisher-amqp.yml. This file can be found at <Blueriq installation folder>\Services\blueriq-customerdata\conf.

Code Block
titleblueriq-customerdata-odata-service-v1-entity-event-publisher-amqp.yml
# RabbitMQ configuration
spring:
  rabbitmq:
Aggregate event channel rabbit configuration
blueriq:
  customerdata:
    aggregate-event:
      channel:
        amqp:
          rabbitmq:
            host: localhost
            port: 5672
            virtualHost: /
       username: guest
    passwordusername: guest
    dynamic: false
    ssl:
   password: guest
  enabled: false

# Aggregate event channel configuration
blueriq:
  customerdata:
    aggregate-eventssl:
      channel:
        amqpenabled: false
            exchangeName: CustomerDataServicecustomerDataService
 


Enable TLS connection

To enable a secure (TLS) AMQP connection to the queue, set the property "spring.rabbitmq.ssl.enabled" to "true".
The default for AQMP port with TLS on RabbitMQ is '5671', it needs to be explicitly enabled though, see https://www.rabbitmq.com/ssl.html for more information.

Administration endpoints

Customerdata service administrative endpoints

Next steps