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
| Key | Description | Example |
|---|---|---|
name | Graft identifier (must match package graft name) | @graft/nuget-EnergyPrice |
runtime | Target runtime | netcore, nodejs, jvm |
host | Remote Gateway address | tcp://host:8990, ws://host:8888/ws |
modules | Module path for in-memory hosting | /path/to/module.jar |
plugins | Security 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
nameor use shared baseline keys - Per-Graft strings must use
nameequal to the Graft'sgraftName
Per-Graft config always wins over global. See Configure multiple Grafts.