Skip Navigation Links | |
Exit Print View | |
Oracle GlassFish Server 3.1 Add-On Component Development Guide |
1. Introduction to the Development Environment for GlassFish Server Add-On Components
3. Extending the Administration Console
4. Extending the asadmin Utility
5. Adding Monitoring Capabilities
6. Adding Configuration Data for a Component
How GlassFish Server Stores Configuration Data
Defining an Attribute of an Element
Representing an Attribute of an Element
Specifying the Data Type of an Attribute
Identifying an Attribute of an Element
Specifying the Name of an Attribute
Specifying the Default Value of an Attribute
Specifying Whether an Attribute Is Required or Optional
Example of Defining an Attribute of an Element
Initializing a Component's Configuration Data
To Define a Component's Initial Configuration Data
To Write a Component's Initial Configuration Data to the domain.xml File
Creating a Transaction to Update Configuration Data
To Create a Transaction to Update Configuration Data
Examples of Adding Configuration Data for a Component
7. Adding Container Capabilities
8. Creating a Session Persistence Module
9. Packaging, Integrating, and Delivering an Add-On Component
The GlassFish Server administrative commands get(1), list(1), and set(1) locate a configuration attribute through the dotted name of the attribute. The dotted name of an attribute of a configuration element is as follows:
configs.config.server-config.element-name[.subelement-name...].attribute-name
The name of an element that contains a subelement or the attribute.
The name of a subelement, if any.
The name of the attribute.
For example, the dotted name of the foo attribute of the wombat-element element is as follows:
configs.config.server-config.wombat-container-config.wombat-element.foo
The formats of the URL to a REST resource that represent an attribute of a configuration element is as follows:
http://host:port/management/domain/path
The host where the DAS is running.
The HTTP port or HTTPS port for administration.
The path to the attribute. The path is the dotted name of the attribute in which each dot (.) is replaced with a slash (/).
For example, the URL to the REST resource for the foo attribute of the wombat-element element is as follows:
http://localhost:4848/management/domain/configs/config/server-config/ wombat-container-config/wombat-element/foo
In this example, the DAS is running on the local host and the HTTP port for administration is 4848.