Oracle GlassFish Server 3.0.1 Application Deployment Guide

sun-application

Defines the GlassFish Server specific configuration for an application. This is the root element; there can only be one sun-application element in a sun-application.xml file. See The sun-application.xml File.

Superelements

none

Subelements

The following table describes subelements for the sun-application element.

Table C–144 sun-application Subelements

Element 

Required 

Description 

web

zero or more 

Specifies the application’s web tier configuration. 

pass-by-reference

zero or one 

Determines whether EJB modules use pass-by-value or pass-by-reference semantics. 

unique-id

zero or one 

Contains the unique ID for the application. 

security-role-mapping

zero or more 

Maps a role in the corresponding Java EE XML file to a user or group. 

realm

zero or one 

Specifies an authentication realm.