System Configuration
Configuration settings can be set in the following default backends:
Backend | Description | Weight |
---|---|---|
Command Line | Backend that is based on command line options. | 5 |
System Properties | Backend that is based on the java system properties. | 10 |
Environment Variables | Backend that is based on the environment variables. | 15 |
Global configuration file | Backend that reads the server.properties file. | 20 |
CronacleFiles | Backend that is based on a Properties passed in directly via startup options. | 21 |
Servlet Variables | Backend that gets it options from the servlet config (web.xml). | 25 |
Registry | Backend that reads the values from the registry under /configuration/jcs | 30 |
Deprecated System Properties | Backend that is based on the deprecated java system properties. | 80 |
Deprecated Registry | Backend that reads deprecated values from the registry under /configuration | 90 |
Default | This backend contains all the default values for options | 1000 |
note
The weight specifies the order in which the settings are applied, heavier backends are passed later and the first setting found is used. System defaults have a weight of 1000
, a custom backend with a weight of 1001
will be ignored.
Custom Backend
You can create custom backends in the form of Java properties files containing any required configuration entries. The full path to the file must be specified in the Configuration.CustomBackends
configuration entry using JSON syntax.
{"name":"<name>","weight":<weight>,"url": "<uri_to_file>"}
Example
Windows
{"name":"myBackend","weight":25,"url": "file://C:/backends/mybackend.properties"}
UNIX
{"name":"myBackend","weight":25,"url": "file:///backends/mybackend.properties"}
Registry Backend
The registry backend (registry) contains the configuration settings used by clients and the system.
A registry entry can have a value associated with it, as well as child registry entries.
note
Registry entries for users should be managed through the options button on the tool-bar. You should not edit or create registry entries unless asked to do so by Redwood support.
The registry is part of the Configuration section in the navigation bar. A standard registry tree is shipped with Redwood Server and registry entries for users will automatically be added as users log in.
To view a hierarchy of all registry entries, choose "Configuration > Registry" in the Navigation bar.
Context-Menu
Registry keys support the following context-menu actions:
Action | Description |
---|---|
Edit Security | Edit the security of the registry entry |
Apply Security Recursively | Apply the security settings to child registry entries as well |
Duplicate | Make a copy of the registry entry to create a similar one |
Delete | Delete the registry entry |
Export > Export | Export the registry entry into a CAR file |
Export > Export with related objects | Export the registry entry into a CAR file including referenced objects |
Promote > Promote to system | Promote the object to a remote system |
Promote > Edit further then promote | Edit the export rule set prior to promoting |
Promote | Promote the registry entry to another Redwood Server instance |
Edit | Edit the registry entry |
Show permalinks | Show links that can be used from third party applications to link to the object |
Add to navigation bar | Add the current object to the navigation bar |
Expand All | Expand all registry entries in the current filter |
New | Create a new registry entry |
Security
Privilege | Description |
---|---|
RegistryEntry.Create | Create registry entries |
RegistryEntry.Delete | Delete registry entries |
RegistryEntry.Edit | Edit registry entries |
RegistryEntry.View | Access registry entries |
RegistryEntry.CreateChildRegistryEntry | Create a child registry entry. |
You can grant privileges on two levels, Access and Admin; a privilege granted on Admin level allows the grantee to grant the privilege to other users. These privileges can be granted per partition or system-wide.The Security tab allows you to specify which users can access, edit, and delete the registry entry.
Procedure to change a users time zone using the registry
- Choose "Configuration > Registry".
- Expand
user > <username> > ui > configuration
. - In the detail pane choose Edit from the Actions menu.
- Enter the desired Time zone in the field Value.
- Choose Save and Close to save the modified registry entry.
To delete child registry entries
- Choose new to create a child registry entry.
- Choose one ChildRegistryEntry and choose delete to delete a child registry entry.
- Choose Save & Close to save the new registry entry and close the edit window.
Registry Entry
- Name - The name of the registry entry.
- Description - An optional description of the registry entry.
- Documentation - An optional comment for the registry entry.
- Value - Value of this registry entry stored as textual data.
- Type - Client-dependent type definition of the value.
- Modify allowed - Whether users can modify the value of this registry entry themselves.
Inspecting JVM Parameters
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.util.List;
{
RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean();
List<String> jvmArgs = runtimeMxBean.getInputArguments();
for (String arg : jvmArgs) {
jcsOut.println(arg);
}
}
Inspecting Environment Variables
{
java.util.Map<String, String> env = System.getenv();
for (String envName : env.keySet())
{
jcsOut.println(envName + "=" + env.get(envName));
}
}
Inspecting All Configuration Entries
- Submit System_Info.
- Navigate to Monitor > Processes, switch to the Custom Maintenance (Background) Processes.
- Inspect the
stdout.log
file to see the currently configured backends and all configuration entries.