Making controller commands retriable
A retriable command is a controller command that can re-execute itself after encountering a system-level exception during the command execution.
Note:
- Web services are not retriable.
- All commands in the CommandRegistryEntry class are retriable by default.
Procedure
- To make an existing controller command retriable, must
perform one of the following steps:
- The retriable property is initialized by the command factory
based on the properties defined in one of the above command configurations.
This command configuration at runtime can come from the following
two locations in the following order of sequence:
- CommandRegistryEntry retriable setting is assigned from
the retriable properties in the
PROPERTIES
column of theCMDREG
database table, only when that entry exists in the database table. - Otherwise, if an instance property called
<CommandRegistryRetriableProperty defaultValue="0" />
or<CommandRegistryRetriableProperty defaultValue="false" />
is defined in the wc-server.xml file, then the command factory will use this setting as the default retriable configuration. - Otherwise, the value of retriable defined in the controller command will be used.
- CommandRegistryEntry retriable setting is assigned from
the retriable properties in the