You can configure a realm in one of these ways:
In the Administration Console, open the Security component under the relevant configuration and go to the Realms page. For details, click the Help button in the Administration Console.
Use the asadmin create-auth-realm command to configure realms on local servers. For details, see the Oracle GlassFish Server 3.0.1 Reference Manual.