A Configuration specifies how the container is configured (logging, security, data sources, location where to put deployables, etc).
|There are no images attached to this page.|
There are 2 main types of Configurations:
- Local Configuration: You use a local configuration when you're using a Local Container. There are 2 local configuration types: Standalone local configuration and Existing local configuration.
- Runtime Configuration: You use a runtime configuration when you want to access your container as a black box through a remote protocol (JMX, etc). Whereas a local configuration allows you to tune almost all aspects of a container, a runtime configuration only supports configuring container properties that can be modified remotely.
The Cargo Java API allows you to plug your own custom configuration implementation. You can register your configuration against the
DefaultConfigurationFactory class. It's optional and only required if you want to let users use the
DefaultConfigurationFactory class to instantiate your configuration. For example you could write:
If you're using a Cargo extension then refer to the extension documentation to check if it supports custom configurations.