2.8.13 list-web-context-param
Lists the servlet context-initialization parameters of a deployed Web application or module.
Synopsis
asadmin [asadmin-options] list-web-context-param [--help] [--name=context-param-name] application-name[/module]
Storage location
Application Server installation directory/javaee/glassfish/bin
Function
The list-web-context-param subcommand of asadmin lists the servlet context-initialization parameters of one of the following items:
-
A deployed Web application
-
A Web module in a deployed Java Platform, Enterprise Edition (Java EE) application
The list-web-context-param command lists only those parameters that have previously been set using the set-web-context-param command. The command does not list parameters that are set only in the application's DD.
Precondition
-
Domain Administration Server (DAS) is running.
-
The application must already be deployed. Else, an error occurs.
Files
The path to the module is specified in the module element of the application's application.xml file.
Arguments
- --help | -?
-
Displays the help text for the subcommand.
- --name=context-param-name
-
Specifies the name of the servlet context-initialization parameter that is to be listed.
Type: String
The following values can be specified:
-
Name of the servlet context-initialization parameter
Default value: All parameters of the application that have previously been set are listed.
-
- application-name/module
-
Specifies the name of the application. This name can be obtained by using the list-applications subcommand.
The module is required only if the servlet context-initialization parameter applies to a Web module of a Java EE application.
For the option Module must follow application-name, separated by a slash (/).
Type: String
The following values can be specified:
-
application-name
-
module
Default value: N/A
-
Examples
The following example lists all servlet context-initialization parameters of the web application basic-ezcomp that have been set by using the set-web-context-param subcommand.
asadmin list-web-context-param basic-ezcomp
Exit Status
Exit Status |
Explanation |
---|---|
0 |
subcommand executed successfully. |
1 |
error in executing the subcommand. |