Versions Compared

Key

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

Younite YOUnite Adaptors communicate with Younite the YOUnite API/Router using JMS through a message brokerMessage Broker.

The properties covered below can be either specified in the application.properties file for spring boot application or using the environment variables of the same name in Docker instance, via the docker command line or the docker-compose.yml file.

To configure the adaptor instance to be able to communicate with the message brokerMessage Broker, following needs to be donedo the following steps:

  1. Message broker Broker URL: Specify the message broker Message Broker URL using the property activemq.broker.url.
    This URL is used to specify the host and port information for the message brokerMessage Broker.
    (TODO: move this information to another service that can be used to retrieve such dependencies)
  2. SSL/TLS: Younite YOUnite uses self-signed certificates for enabling SSL/TLS between YouniteAPI and Younite the YOUnite API service and the YOUnite Adaptors. Since these certificates are being used only for enabling SSL/TLS encryption, nothing else needs to be done for enabling SSL/TLS.
  3. Adapter UuidUUID: This ID uniquely identifies an Adaptor for Younite adaptor in the YOUnite system and is assigned at the time of creating or posting an Adaptor at Younite APIan adaptor is created or posted. Specify the adaptor Uuid UUID using the property younite.adaptor.uuid.
  4. Oauth OAuth Server URL: Specify the Oauth OAuth server URL using the property oauth.authorization.server.url.
  5. Oauth OAuth Client Id: Specify Oauth OAuth client Id (may not be the same as the Adaptor Uuid), using the property oauth.client.client-id.
  6. Oauth OAuth Client secret: Specify Oauth OAuth Client secret, using the property oauth.client.client-secret.


For example:

activemq.broker.url=nio+ssl://docker.local:61617
oauth.authorization.server.url
=http://localhost:8080
oauth2.client.client-id=074554bd-2ab7-4249-8267-8747459d82ab
oauth2.client.client-secret=66e2caa4-c656-4b94-9d44-dc0b90320b02
oauth2.client.grant-type=client_credentials
younite.adaptor.uuid
=defaultUuid

...

Running the API

...

server in

...

-Dactivemq.broker.url=nio+ssl://192.168.2.200:61617 -Djavax.net.ssl.trustStore=docker/openmdm-mb/docker/certs/client.ts

The first is the IP address of your localhost. The second option is the location of the client.ts cert. 

...

an IDE and the rest of the stack using docker-compose

Please see the instructions at this page.