Graft connection string

Format

Connection strings are semicolon-separated key=value pairs:

name=<graft-name>;runtime=<runtime>;host=<host>;modules=<path>;plugins=<plugins>

Note

Alpha Full connection string configuration is not yet fully supported. Prefer GraftConfig.host and config files. See Alpha limitations.


Keys

KeyDescriptionExample
nameGraft identifier (must match package graft name)@graft/nuget-EnergyPrice
runtimeTarget runtimenetcore, nodejs, jvm
hostRemote Gateway addresstcp://host:8990, ws://host:8888/ws
modulesModule path for in-memory hosting/path/to/module.jar
pluginsSecurity plugin configuration(plugin-specific)

Examples

GraftConfig.setConfig(
  "name=@graft/nuget-EnergyPrice;runtime=netcore;host=ws://localhost:8888/ws"
);

Omit host for in-memory execution.


Name resolution

  • Global connection strings omit graft-specific name or use shared baseline keys
  • Per-Graft strings must use name equal to the Graft's graftName

Per-Graft config always wins over global. See Configure multiple Grafts.


See also