Configure connection with application configuration

IBMStreams streamsx.eventstore Toolkit > com.ibm.streamsx.eventstore 2.5.0.beta > com.ibm.streamsx.eventstore > EventStoreSink > Configure connection with application configuration

The connection can be configured with operator parameters or application configuration.

The priority of the options is
  1. application configuration with properties, name of the application configuration is set with operator parameter configObject
  2. operator parameter, for example connectionString, databaseName etc. (ignored if set as property in application configuration)

When the operator starts, it will look for application configuration with the name set in parameter configObject and the operator extracts the information needed to connect. The following steps outline how this can be done:

  1. Create an application configuration, for example called EventStore.
  2. Create properties in the EventStore application configuration:
    • connectionString contains the connection URL(s)
    • databaseName contains the database name, for example EVENTDB
    • eventStoreUser
    • eventStorePassword
    • keyStorePassword
    • trustStorePassword
  3. The operator will look for an application configuration named EventStore if name is set in operator parameter configObject and will extract the information needed to connect.