1. Overview of GlassFish Server Administration
Default Settings and Locations
Instructions for Administering GlassFish Server
Subcommands of the asadmin Utility
asadmin Utility Options and Subcommand Options
Operands of asadmin Utility Subcommands
To Run an asadmin Utility Subcommand in Single Mode
To Display Help Information for the asadmin Utility or a Subcommand
To Run a Set of asadmin Subcommands From a File
To Add Resources From an XML File
Listing Various System Elements
To Display the GlassFish Server Version
Using REST Interfaces to Administer GlassFish Server
Using REST URLs to Administer GlassFish Server
REST URLs to Resources for Configuration and Monitoring Objects
REST URLs for Accessing the Log File
Using REST Resource Methods to Administer GlassFish Server
To Determine the Methods and Method Parameters That an Object in the Tree Supports
To Retrieve Data for an Object in the Tree
To Update an Object in the Tree
To Delete an Object From the Tree
Resources for asadmin Subcommands That Perform Non-CRUD Operations
Securing GlassFish Server REST Interfaces
Setting Up Basic Authentication Over a Secure Connection
To Secure REST Interfaces by Using Session Tokens
Formats for Resource Representation of Configuration Objects
JSON Resource Representation for Configuration Objects
XML Resource Representation for Configuration Objects
HTML Resource Representation for Configuration Objects
Formats for Resource Representation of Monitoring Objects
JSON Resource Representation for Monitoring Objects
XML Resource Representation for Monitoring Objects
HTML Resource Representation for Monitoring Objects
Formats for Resource Representation of Log File Details
JSON Resource Representation for Log File Details
XML Resource Representation for Log File Details
Supported Content Types in Requests to REST Resources
4. Administering the Virtual Machine for the Java Platform
6. Administering Web Applications
7. Administering the Logging Service
8. Administering the Monitoring Service
9. Writing and Running JavaScript Clients to Monitor GlassFish Server
10. Administering Life Cycle Modules
11. Extending and Updating GlassFish Server
Part II Resources and Services Administration
12. Administering Database Connectivity
13. Administering EIS Connectivity
14. Administering Internet Connectivity
15. Administering the Object Request Broker (ORB)
16. Administering the JavaMail Service
17. Administering the Java Message Service (JMS)
18. Administering the Java Naming and Directory Interface (JNDI) Service
19. Administering Transactions
Shared server instances will often need to override attributes defined in their referenced configuration. Any configuration attribute can be overridden through a system property of the corresponding name.
The following topics are addressed here:
Use the create-system-properties subcommand in remote mode to create or update one or more system properties of the domain or configuration. Any configuration attribute can be overwritten through a system property of the corresponding name.
Remote subcommands require a running server.
Information about properties for the subcommand is included in this help page.
Example 2-10 Creating a System Property
This example creates a system property associated with http-listener-port=1088 on localhost.
asadmin> create-system-properties http-listener-port=1088 Command create-system-properties executed successfully.
See Also
You can also view the full syntax and options of the subcommand by typing asadmin help create-system-properties at the command line.
Use the list-system-properties subcommand in remote mode to list the system properties that apply to a domain or configuration.
Remote subcommands require a running server.
The existing system properties are displayed, including predefined properties such as HTTP_LISTENER_PORT and HTTP_SSL_LISTENER_PORT.
Example 2-11 Listing System Properties
This example lists the system properties on host localhost.
asadmin> list-system-properties http-listener-port=1088 Command list-system-properties executed successfully.
See Also
You can also view the full syntax and options of the subcommand by typing asadmin help list-system-properties at the command line.
Use the delete-system-property subcommand in remote mode to delete system properties.
Remote subcommands require a running server.
Example 2-12 Deleting a System Property
This example deletes a system property named http-listener-port from localhost.
asadmin> delete-system-property http-listener-port Command delete-system-property executed successfully.
See Also
You can also view the full syntax and options of the subcommand by typing asadmin help delete-system-property at the command line.