Exit Print View

Sun GlassFish Enterprise Server v3 Domain File Format Reference

  This Document Entire Library
Print View

Document Information

Preface

1.  The domain.xml File

About the domain.xml File

Verification

Extensibility

Backup

Default Values

Variables

Element Referencing

Element Hierarchy

Alphabetical List of Elements

A

access-log

Superelements

Subelements

Attributes

admin-object-resource

Superelements

Subelements

Attributes

Properties

admin-service

Superelements

Subelements

Attributes

appclient-module

Superelements

Subelements

Attributes

application

Superelements

Subelements

Attributes

Properties

application-ref

Superelements

Subelements

Attributes

applications

Superelements

Subelements

audit-module

Superelements

Subelements

Attributes

Properties

auth-realm

Superelements

Subelements

Attributes

Properties

B

backend-principal

Superelements

Subelements

Attributes

C

config

Superelements

Subelements

Attributes

configs

Superelements

Subelements

connection-pool

Superelements

Subelements

Attributes

connector-connection-pool

Superelements

Subelements

Attributes

Properties

connector-module

Superelements

Subelements

Attributes

connector-resource

Superelements

Subelements

Attributes

connector-service

Superelements

Subelements

Attributes

context-param

Superelements

Subelements

Attributes

custom-resource

Superelements

Subelements

Attributes

D

das-config

Superelements

Subelements

Attributes

description

Superelements

Subelements

domain

Superelements

Subelements

Attributes

E

ejb-container

Superelements

Subelements

Attributes

ejb-module

Superelements

Subelements

Attributes

ejb-timer-service

Superelements

Subelements

Attributes

engine

Superelements

Subelements

Attributes

env-entry

Superelements

Subelements

Attributes

env-entry-name

Superelements

Subelements

env-entry-type

Superelements

Subelements

env-entry-value

Superelements

Subelements

extension-module

Superelements

Subelements

Attributes

external-jndi-resource

Superelements

Subelements

Attributes

F

file-cache

Superelements

Subelements

Attributes

G

group-map

Superelements

Subelements

Attributes

H

http

Superelements

Subelements

Attributes

http-access-log

Superelements

Subelements

Attributes

http-file-cache

Superelements

Subelements

Attributes

http-listener

Superelements

Subelements

Attributes

Properties

http-protocol

Superelements

Subelements

Attributes

http-service

Superelements

Subelements

Attributes

Properties

I

iiop-listener

Superelements

Subelements

Attributes

iiop-service

Superelements

Subelements

Attributes

J

j2ee-application

Superelements

Subelements

Attributes

jacc-provider

Superelements

Subelements

Attributes

Properties

java-config

Superelements

Subelements

Attributes

jdbc-connection-pool

Superelements

Subelements

Attributes

Properties

jdbc-resource

Superelements

Subelements

Attributes

jms-host

Superelements

Subelements

Attributes

jms-service

Superelements

Subelements

Attributes

Properties

jmx-connector

Superelements

Subelements

Attributes

jruby-container

Superelements

Subelements

Attributes

jruby-runtime-pool

Superelements

Subelements

Attributes

jvm-options

Superelements

Subelements

K

keep-alive

Superelements

Subelements

Attributes

L

lifecycle-module

Superelements

Subelements

Attributes

log-service

Superelements

Subelements

Attributes

Properties

M

mail-resource

Superelements

Subelements

Attributes

Properties

manager-properties

Superelements

Subelements

Attributes

mdb-container

Superelements

Subelements

Attributes

Properties

message-security-config

Superelements

Subelements

Attributes

module

Superelements

Subelements

Attributes

module-log-levels

Superelements

Subelements

Attributes

module-monitoring-levels

Superelements

Subelements

Attributes

monitoring-service

Superelements

Subelements

N

network-config

Superelements

Subelements

network-listener

Superelements

Subelements

Attributes

network-listeners

Superelements

Subelements

O

orb

Superelements

Subelements

Attributes

P

param-name

Superelements

Subelements

param-value

Superelements

Subelements

port-unification

Superelements

Subelements

Attributes

principal

Superelements

Subelements

principal-map

Superelements

Subelements

Attributes

profiler

Superelements

Subelements

Attributes

property

Superelements

Subelements

Attributes

protocol

Superelements

Subelements

Attributes

protocol-chain

Superelements

Subelements

Attributes

protocol-chain-instance-handler

Superelements

Subelements

Attributes

protocol-filter

Superelements

Subelements

Attributes

protocol-finder

Superelements

Subelements

Attributes

protocols

Superelements

Subelements

provider-config

Superelements

Subelements

Attributes

Properties

R

registry-location

Superelements

Subelements

Attributes

request-policy

Superelements

Subelements

Attributes

request-processing

Superelements

Subelements

Attributes

resource-adapter-config

Superelements

Subelements

Attributes

Properties

resource-ref

Superelements

Subelements

Attributes

resources

Superelements

Subelements

response-policy

Superelements

Subelements

Attributes

S

security-map

Superelements

Subelements

Attributes

security-service

Superelements

Subelements

Attributes

selection-key-handler

Superelements

Subelements

Attributes

server

Superelements

Subelements

Attributes

servers

Superelements

Subelements

session-config

Superelements

Subelements

session-manager

Superelements

Subelements

session-properties

Superelements

Subelements

Attributes

Properties

ssl

Superelements

Subelements

Attributes

ssl-client-config

Superelements

Subelements

store-properties

Superelements

Subelements

Attributes

system-applications

Superelements

Subelements

system-property

Superelements

Subelements

Attributes

Properties

T

thread-pool

Superelements

Subelements

Attributes

thread-pools

Superelements

Subelements

transaction-service

Superelements

Subelements

Attributes

Properties

transformation-rule

Superelements

Subelements

Attributes

transport

Superelements

Subelements

Attributes

transports

Superelements

Subelements

U

user-group

Superelements

Subelements

V

virtual-server

Superelements

Subelements

Attributes

Properties

W

web-container

Superelements

Subelements

Properties

web-module

Superelements

Subelements

Attributes

web-module-config

Superelements

Subelements

web-service-endpoint

Superelements

Subelements

Attributes

work-security-map

Superelements

Subelements

Attributes

Index

E

ejb-container

Configures the EJB container. Stateless session beans are maintained in pools. Stateful session beans have session affinity and are cached. Entity beans associated with a database primary key are also cached. Entity beans not yet associated with a primary key are maintained in pools. Pooled entity beans are used to run ejbCreate() and finder methods.

Superelements

config

Subelements

The following table describes subelements for the ejb-container element.

ejb-container Subelements
Element
Required
Description
zero or one
Configures the EJB timer service.
zero or more
Specifies a property or a variable.
Attributes

The following table describes attributes for the ejb-container element.

ejb-container Attributes
Attribute
Default
Description
steady-pool-size
32
(optional) Specifies the initial and minimum number of beans maintained in the pool. Must be 0 or greater and less than max-pool-size .

Bean instances are removed from the pool and returned after use. The pool is replenished or cleaned up periodically to maintain this size.

Applies to stateless session beans and entity beans.

pool-resize-quantity
16
(optional) Specifies the number of beans to be removed when the pool-idle-timeout-in-seconds timer expires. A cleaner thread removes any unused instances.

Must be 0 or greater and less than max-pool-size . The pool is not resized below the steady-pool-size.

Applies to stateless session beans and entity beans.

max-pool-size
64
(optional) Specifies the maximum number of beans that can be created to satisfy client requests. A value of 0 indicates an unbounded pool.

Applies to stateless session beans and entity beans.

cache-resize-quantity
32
(optional) Specifies the number of beans to be:
  • created if a request arrives when the pool has no available beans (subject to the max-cache-size limit)

  • passivated when the cache-idle-timeout-in-seconds timer expires and a cleaner thread removes any unused instances, or when the cache size exceeds max-cache-size.

    Must be greater than 1 and less than max-cache-size.

    Applies to stateful session beans and entity beans.

max-cache-size
512
(optional) Specifies the maximum number of beans in the cache. A value of 0 indicates an unbounded cache.

Applies to stateful session beans and entity beans.

pool-idle-timeout-in-seconds
600
(optional) Specifies the maximum time that a bean can remain idle in the pool. After this amount of time, the pool can remove this bean. A value of 0 specifies that idle beans can remain in the pool indefinitely.

Applies to stateless session beans and entity beans.

cache-idle-timeout-in-seconds
600
(optional) Specifies the maximum time that a bean can remain idle in the cache. After this amount of time, the container can passivate this bean. A value of 0 specifies that beans never become candidates for passivation.

Applies to stateful session beans and entity beans.

removal-timeout-in-seconds
5400
(optional) Specifies the amount of time that a bean can remain passivated before it is removed from the session store. A value of 0 specifies that the container does not remove inactive beans automatically.

If removal-timeout-in-seconds is less than or equal to cache-idle-timeout-in-seconds, beans are removed immediately without being passivated.

The session-store attribute of the server element determines the location of the session store.

Applies to stateful session beans.

victim-selection-policy
nru
(optional) Specifies how stateful session beans are selected for passivation. Allowed values are fifo, lru, and nru :
  • fifo - Selects the oldest instance.

  • lru - Selects the least recently accessed instance.

  • nru - Selects a not recently used instance.

commit-option
B
(optional) Determines which commit option is used for entity beans. Legal values are B or C.
session-store
domain-dir/session-store
(optional) Specifies the directory where passivated stateful session beans and persisted HTTP sessions are stored in the file system.

ejb-module

This element is deprecated. Use an application element instead.

Specifies a deployed EJB module.

Superelements

applications

Subelements

The following table describes subelements for the ejb-module element.

ejb-module Subelements
Element
Required
Description
zero or one
Contains a text description of this element.
zero or more
Configures a web service endpoint.
zero or more
Specifies a property or a variable.
Attributes

The following table describes attributes for the ejb-module element.

ejb-module Attributes
Attribute
Default
Description
name
none
The name of the EJB module.
location
none
A fully qualified or relative path to the directory to which the contents of the EJB .jar file have been extracted. If relative, it is relative to the following directory:

domain-dir/applications/

object-type
user
(optional) Defines the type of the resource. For an EJB module, the only allowed value is user.
enabled
true
(optional) Determines whether the EJB module is enabled.
libraries
none
(optional) Specifies an absolute or relative path to libraries specific to this module or application. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. To include more than one path, use a system-specific separator, such as a colon for Solaris or a semicolon for Windows. The libraries are made available to the application in the order in which they are specified.
directory-deployed
false
(optional) Specifies whether the application has been deployed as a directory.

ejb-timer-service

Configures the EJB timer service.

Superelements

ejb-container

Subelements

The following table describes subelements for the ejb-timer-service element.

ejb-timer-service Subelements
Element
Required
Description
zero or more
Specifies a property or a variable.
Attributes

The following table describes attributes for the ejb-timer-service element.

ejb-timer-service Attributes
Attribute
Default
Description
minimum-delivery-interval-in-millis
1000
(optional) Specifies the minimum time before an expiration for a particular timer can occur. This guards against extremely small timer increments that can overload the server.
max-redeliveries
1
(optional) Specifies the maximum number of times the EJB timer service attempts to redeliver a timer expiration due for exception or rollback.
timer-datasource
jdbc/__TimerPool
(optional) Overrides, for the server instance, the cmp-resource value specified in sun-ejb-jar.xml for the timer service system application (__ejb_container_timer_app ).
redelivery-interval-internal-in-millis
5000
(optional) Specifies how long the EJB timer service waits after a failed ejbTimeout delivery before attempting a redelivery.

engine

Specifies an engine for an application or module. An engine runs a sniffer during deployment, which is responsible for identifying a type of deployment artifact (such as a WAR file) and setting up the associated container (such as the web container). Multiple engines, each with its own sniffer, can be associated with a given application or module.

Superelements

application, module

Subelements

The following table describes subelements for the engine element.

engine Subelements
Element
Required
Description
zero or one
Configures the parent web module. Applicable only if this engine element has a sniffer value of web.
zero or more
Specifies a property or a variable.
Attributes

The following table describes attributes for the engine element.

engine Attributes
Attribute
Default
Description
sniffer
none
Specifies the type of sniffer. Allowed values include the following:
  • web — Specifies that the parent module is a web application.

  • security — Specifies that security is enabled for the parent module.

  • jpa — Specifies that the parent module uses the Java Persistence API.

  • connector — Specifies that the parent module is a connector.

  • ejb — Specifies that the parent module is an EJB module. The EJB container add-on component must be installed in the Enterprise Server.

  • webservices — Specifies that the parent module is a web service endpoint. The Metro add-on component must be installed in the Enterprise Server.

  • appclient — Specifies that the parent module is an application client. This value is valid only in the full platform distribution of the Enterprise Server.

  • ear — Specifies that the parent application is a Java EE application (EAR file). This value is valid only in the full platform distribution of the Enterprise Server.

  • webbeans — Specifies that the parent module is a Web Bean. The Web Beans add-on component must be installed in the Enterprise Server.

  • jruby — Specifies that the parent module is a JRuby application. The JRuby add-on component must be installed in the Enterprise Server.

  • osgi — Specifies that the parent module is an OSGi add-on component.

  • grizzly — Specifies that the parent module is a Grizzly add-on component.

description
none
(optional) Specifies a text description for this element.

env-entry

Configures an environment entry for a web module at deployment time. This is an alternative to setting an env-entry in the web.xml file. To override an env-entry in the web.xml file, set the ignore-descriptor-item attribute to true.

Superelements

web-module-config

Subelements

The following table describes subelements for the env-entry element.

env-entry Subelements
Element
Required
Description
only one
Contains an environment entry name.
only one
Contains an environment entry type.
only one
Contains an environment entry value.
zero or one
Contains a text description of this element.
Attributes

The following table describes attributes for the env-entry element.

env-entry Attributes
Attribute
Default
Description
ignore-descriptor-item
false
(optional) If true, specifies that if the same environment entry occurs in the deployment descriptor it is ignored.

env-entry-name

Contains an environment entry name.

Superelements

env-entry

Subelements

none - contains data

env-entry-type

Contains an environment entry type.

Superelements

env-entry

Subelements

none - contains data

env-entry-value

Contains an environment entry value.

Superelements

env-entry

Subelements

none - contains data

extension-module

This element is deprecated. Use an application element instead.

Specifies a deployed extension module.

Superelements

applications

Subelements

The following table describes subelements for the extension-module element.

extension-module Subelements
Element
Required
Description
zero or one
Contains a text description of this element.
zero or more
Specifies a property or a variable.
Attributes

The following table describes attributes for the extension-module element.

extension-module Attributes
Attribute
Default
Description
name
none
The name of the extension module.
location
none
A fully qualified or relative path to the directory to which the contents of the .jar or .war file have been extracted. If relative, it is relative to the following directory:

domain-dir/applications/

module-type
none
Specifies a String that identifies the extension module type, which the runtime uses to find the appropriate add-on container. When an extension module is registered with the Enterprise Server, the Enterprise Server specifies the module type automatically.
object-type
user
(optional) Defines the type of the resource. For an extension module, the only allowed value is user.
enabled
true
(optional) Determines whether the extension module is enabled.
libraries
none
(optional) Specifies an absolute or relative path to libraries specific to this module or application. A relative path is relative to domain-dir/lib/applibs. If the path is absolute, the path must be accessible to the domain administration server (DAS), which means it must be under domain-dir. To include more than one path, use a system-specific separator, such as a colon for Solaris or a semicolon for Windows. The libraries are made available to the application in the order in which they are specified.
directory-deployed
false
(optional) Specifies whether the application has been deployed as a directory.

external-jndi-resource

Defines a resource that resides in an external JNDI repository. For example, a generic Java object could be stored in an LDAP server. An external JNDI factory must implement the javax.naming.spi.InitialContextFactory interface.

Superelements

resources

Subelements

The following table describes subelements for the external-jndi-resource element.

external-jndi-resource Subelements
Element
Required
Description
zero or one
Contains a text description of this element.
zero or more
Specifies a property or a variable.
Attributes

The following table describes attributes for the external-jndi-resource element.

external-jndi-resource Attributes
Attribute
Default
Description
jndi-name
none
Specifies the JNDI name for the resource.
jndi-lookup-name
none
Specifies the JNDI lookup name for the resource.
res-type
none
Specifies the fully qualified type of the resource.
factory-class
none
Specifies the fully qualified name of the factory class, which implements javax.naming.spi.InitialContextFactory.

For more information about JNDI, see the Sun GlassFish Enterprise Server v3 Application Development Guide.

object-type
user
(optional) Defines the type of the resource. Allowed values are:
  • system-all - A system resource for all server instances and the domain application server.

  • system-admin - A system resource only for the domain application server.

  • system-instance - A system resource for all server instances only.

  • user - A user resource.

enabled
true
(optional) Determines whether this resource is enabled at runtime.