Versions Compared

Key

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

DCM 2.0 has several components that use Document databases (MongoDB)the document database MongoDB.

This section will explain in which components MongoDB is used, which configurations are needed for it and what needs to be considered when installing the databaseshow to configure these components, and provide pointers to considerations when installing MongoDB.

Overview

For an overview of the architecture, please refer to Blueriq DCM architecture overview

In the overview you can see that the components : Case Engine, DCM Lists Service and the DCM Maintenance App use one or more MongoDB databases. When using these components, it is needed to create the following four databases in MongoDBare created:

  • caseEngine: the database where case related information is stored for the Case Engine
  • locks: the database where case locks are stored and , thus enabling case consistency
  • tasks: the database where the tasks for the DCM Lists Service component are stored
  • messages: the database where all (failed/delayed) messages are stored for the DCM Maintenance App

Instructions about how to create a database can be found here: By default, databases are created when they are used and do not yet exist. For more information, see https://www.mongodb.com/docs/manual/core/databases-and-collections/

...

.

...

Configuration

When the databases are created, it is necessary to configure all applications in a way that they can communicate with the databasesEach comopnent requires configuration to locate the MongoDB instance to use.

Case Engine

In the application-case-engine.properties file, add the following lines which enable the Case Engine to communicate with the caseEngine and locks databases:

Code Block
languagebash
titleapplication-case-engine.properties
# MongoDB - Case Engine
blueriq.case.engine.data.mongodb.host=<url-of-the-database-server>
blueriq.case.engine.data.mongodb.port=<port-of-the-mongoDB-instance>
blueriq.case.engine.data.mongodb.database=caseEngine

# MongoDB - locks
blueriq.locking.mongodb.host=<url-of-the-database-server>
blueriq.locking.mongodb.port=<port-of-the-mongoDB-instance>
blueriq.locking.mongodb.database=locks

Replace the strings with < and > with the needed values of your specific setup.

DCM Lists Service

In the blueriq-dcm-lists.yml file, add the following lines, which enable the DCM Lists Service to communicate with the tasks database:

Code Block
languageyml
titleblueriq-dcm-lists.yml
spring:
  data:
    mongodb:
		host: <url-of-the-database-server>
		port: <port-of-the-mongoDB-instance>
		database: tasks

Replace the strings with < and > with the needed values of your specific setup.


DCM Maintenance App

In the blueriq-dcm-maintenance-app.yml file, add the following lines, which enable the DCM Maintenance App to communicate with the messages database:

Code Block
languageyml
title blueriq-dcm-maintenance-app.yml
blueriq:
  dcm:
    maintenance:
      app:       
        mongodb:
			host: <url-of-the-database-server>
			port: <port-of-the-mongoDB-instance>
			database: messages

...

Installing MongoDB:

MongoDB can be downloaded and installed via https://www.mongodb.com/.

...

...