Sun GlassFish Enterprise Server v3 Add-On Component Development Guide

Specifying Whether an Attribute Is Required or Optional

Whether an attribute is required or optional determines how Enterprise Server responds if the parameter is omitted when the element is written to the domain configuration file:

To specify whether an attribute is required or optional, set the required element of the @Attribute annotation as follows: