Create-Module-Config
Adds the default configuration of a module to domain.xml.
Synopsis
asadmin [asadmin-options] create-module-config [--help]
[--dryrun={false|true}]
[--all={false|true}]
[--target target]
[service_name]
Description
The create-module-config subcommand adds the default configuration of a module to domain.xml.
This subcommand is supported in remote mode only.
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.
--dryrun:
Displays the default configuration of a module but does not add it to domain.xml. The default value is false.
--all:
Adds all default configurations of modules to domain.xml if they are not already in it. The default value is false.
--target:
Specifies the target to which the default configuration is being added.
Possible values are as follows:
server;;
Adds the default configuration to the default server instance. This is the default value.
domain;;
Adds the default configuration to the default domain.
cluster-name;;
Adds the default configuration to every server instance in the specified cluster.
instance-name;;
Adds the default configuration to the specified instance.
Examples
Example 1 Adding a Default Configuration to domain.xml
This example adds the default configuration of the web container module to domain1 in server-config (the default configuration). Use the --dryrun option to preview the configuration before it is added.
asadmin> create-module-config web-container
Command create-module-config executed successfully.