Environment-specific Configs
Service definition stays in the service directory. Environment values live in the node deploy and message-bus context.
The goal is one binary, per-environment overrides—trackable by diff without code branches.
Recommended directory layout
services/<service>/service.xml services/<service>/libs/<service>.jar config/services/<node>.xml config/services/<node>/deploy/<service>.xml contexts/messagebus/connections/rabbit01.xml contexts/messagebus/endpoints/group1/endpoint1.xml contexts/messagebus/endpoints/group1/error.xml
Required separation
- Connection host, port, and credentials in
contexts/messagebus/connections - Init-param values in the deploy file, overriding
service.xmldefaults - Resource type and properties in the deploy file
- Dead-letter destination on the
errorendpoint
Release checklist
| Check | Criteria |
|---|---|
| Secrets in repo | 0 |
| Environment diff approval | 2+ reviewers |
| Rollback artifact | Keep prior revision |