set-fault-tolerance-configuration

Modifies the configuration settings of the MicroProfile Fault Tolerance service.

Synopsis

asadmin [asadmin-options] set-fault-tolerance-configuration [--help]
[--managedexecutorservicename=managedexecutorservicename]
[--managedscheduledexecutorservicename=managedscheduledexecutorservicename]
[--target=server-config]

Description

The set-fault-tolerance-configuration provides a way to modify the configuration of the MicroProfile Fault Tolerance service in the specified target.

Options

asadmin-options

Options for the asadmin utility. For information about these options, see the asadmin help page.

--help
-?

Displays the help text for the subcommand.

--managedexecutorservicename

The Logical JNDI name of the Managed Executor Service to look up. Changes to this configuration require a restart of the server to take effect.

Defaults to java:comp/DefaultManagedExecutorService

--managedscheduledexecutorservicename

The Logical JNDI name of the Managed Scheduled Executor Service to look up. Changes to this configuration require a restart of the server to take effect.

Defaults to java:comp/DefaultManagedScheduledExecutorService

--target

Specifies the target of this command.
Valid values are as follows:

server

Specifies the DAS (default).

instance-name

Specifies a Payara Server instance.

cluster-name

Specifies a cluster.

configuration-name

Specifies a named configuration.

Example

Example 1 Setting MicroProfile Fault Tolerance configuration

This example sets the configuration of the MicroProfile Fault Tolerance service.

asadmin> set-fault-tolerance-configuration --managedexecutorservicename=java:comp/DefaultManagedExecutorService --target instance1

Exit Status

0

subcommand executed successfully

1

error in executing the subcommand

See Also