Versions Compared

Key

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

...

For RabbitMQ and MongoDB the properties need to be set per tenant as well.

Currently, it's required to supply the queue and exchange names if multi-tenancy is enabled. This is an example of this configuration:

...

Code Block
languageyml
titleblueriq-dcm-maintenance-app.yml
blueriq:
  multi-tenancy:
    enabled: true
    allowed-tenants:
      - A
      - B
  dcm:
    maintenance:
      app:        
        dlq:
          retry:
            delay: 2m
            max-retries: 03
          rabbitmq:
            tenants:
              blueriqA:
                host: ${MULTITENANCY_HOST}
               localhost
                port: 180305672
                username: guest
                password: guest
                virtualHost: BlueriqA_vhost
                queueNames:
                  - dcmEventsDlq
                  - dcmTasksEventsDlq
                  - dcmScheduledEventsDlq
                  - traceDlq
                  - timelineDlq
                  - dcmMaintenanceEventsDlq
                  - auditEventsDlq
                  - dcmListsEventsDlq
              everestB:
                host: ${MULTITENANCY_HOST}localhost
                port: 180305672
                username: guest
                password: guest
                virtualHost: EverestB_vhost
                queueNames:
                  - dcmEventsDlq
                  - dcmTasksEventsDlq
                  - dcmScheduledEventsDlq
                  - traceDlq
                  - timelineDlq
                  - dcmMaintenanceEventsDlq
                  - auditEventsDlq
                  - dcmListsEventsDlq
        case-engine:
          rabbitmq:
            tenants:
              blueriqA:
                host: ${MULTITENANCY_HOST}
                port: 18030
               localhost
                port: 5672
                username: guest
                password: guest
                queueNames:
                  - dcmMaintenanceEventsQueue
                virtualHost: BlueriqA_vhost
              everestB:
                host: ${MULTITENANCY_HOST}
                port: 18030localhost
                port: 5672
                username: guest
                password: guest
                queueNames:
                  - dcmMaintenanceEventsQueue
                virtualHost: EverestB_vhost

        mongodb:
          tenants:
            blueriqA:
              host: ${MULTITENANCY_HOST}
              port: 18032
              database: bqlocalhost
              port: 27017
              database: A_messages
            everestB:
              host: ${MULTITENANCY_HOST}
             localhost
              port: 1803227017
              database: evB_messages