Skip to content

2.6 Starting Registration Handler and resource management

MarioKusek edited this page Dec 5, 2019 · 5 revisions

This steps are for manual configuration and starting of Registration Handler. If you used symbioteCloud.sh this is done for you.

2.6.1. Creating configuration for accessing PAAM

If you have downloaded from Administration the .zip containing the configuration files, then you can use the bootstrap.properties file contained in the RegistrationHandler folder. You just need to move it to the Registration Handler directory. Otherwise, you will have to create it yourselves with the following content:

# The credentials of the Platform Owner account in the PAAM
symbIoTe.component.username=TODO
symbIoTe.component.password=TODO

# Keystore configuration
symbIoTe.component.keystore.path=keystore.jks
symbIoTe.component.keystore.password=pass

This is concrete file for our example:

# The credentials of the Platform Owner account in the PAAM
symbIoTe.component.username=masterPaamUsername
symbIoTe.component.password=masterPaamPassword

# Keystore configuration
symbIoTe.component.keystore.path=keystore.jks
symbIoTe.component.keystore.password=pass

2.6.2. Building and starting RH

Build and start Registration Handler as any other Symbiote component.

$ cd /opt/symbiote/SymbioteCloud/RegistrationHandler
$ gradle assemble --refresh-dependencies
$ java -jar build/libs/RegistrationHandler-3.0.0-run.jar

If you start all components in one script then it is important order of starting components and that some of then are fish starting before others because some of them are dependent on function of others on startup. For example, RegistrationnHandler must be started after AuthenticationAuthorizationManager is started. The same applies to ResourceAccessProxy. There are two ways to configure them to start after others:

  1. Environment variables - set following environment variable:
    • SPRING_BOOT_WAIT_FOR_SERVICES=localhost:8080
  2. Command line options:
    • java -DSPRING_BOOT_WAIT_FOR_SERVICES="localhost:8080" -jar build/libs/RegistrationHandler-1.2.0-run.jar

When the service is started it will try to connect to specified host and port and retry it after 1 second. It will repeat it for 1000 times for each specified service. After it can connect to that port it will continue with starting of service. The format for value is "host1:port1;host2:port2;..."

For testing if service is working as expected open http://127.0.0.1:8001/resources. You should get empty JSON array because no resource is registered. You can access it over NGINX:

  1. Production - http://sybiotedoc.tel.fer.hr/rh/resources
  2. Hackaton - https://b2cb3e08.ngrok.io/rh/resources

Getting Started
Migration to 3.0.0
Migration to Docker

  1. Preparation steps
    1.1. Register user and configure platform in symbIoTe Core
    1.2. Installation of required tools for symbIoTe platform components
    1.3. Downloading jars
    1.4. Downloading sources
  2. Configuring and starting components
    2.1. Configuration of NGINX
    2.2. Starting third party tools that are prerequisite for symbIoTe
    2.3. Starting (generic) symbIoTe Cloud components
    2.4. Configuration of cloud components
    2.4.1. Starting symbIoTe Cloud components
    2.5. Setting up the Platform Authentication and Authorization Manager (PAAM)
    2.6. Starting Registration Handler and resource management
    2.7. Set up of Resource Access Proxy
    2.8. Manage resources
    2.9. Set up of the Monitoring component
    2.10. Other configuration topics
  3. Test integrated resource
    3.1. Security
    3.2. Search for resources
    3.3. Obtaining resource access URL
    3.4. Accessing the resource and actuating and invoking service for default (dummy) resources
  4. Creating RAP plugin
    4.1. Customizing internal RAP plugin
    4.2. Using RAP plugin starter
    4.3. Creating RAP plugin in other languages
  5. Resource Description Examples
    5.1. JSON Description Examples
    5.2. RDF Description Examples
  6. Preparation for L2 compliance
  7. Configuring and starting components for L2
    7.1. Starting Federation Manager
    7.2. Starting Subscription Manager
    7.3. Starting Platform Registry
    7.4. Starting Trust Manager
    7.5. Starting Bartering And Trading
    7.6. Starting SLA Manager
    7.7. Create a federation
    7.8. Manage resources in L2
    7.9. Register Subscription
  8. Test Integrated L2 Resources
  9. Developing symbIoTe enabled apps
Clone this wiki locally