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.
The following table describes subelements for the ejb-container element.
Table 1–40 ejb-container Subelements
Element |
Required |
Description |
---|---|---|
zero or one |
Configures the EJB timer service. |
|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the ejb-container element.
Table 1–41 ejb-container Attributes
Attribute |
Default |
Description |
---|---|---|
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. |
|
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. |
|
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. |
|
32 |
(optional) Specifies the number of beans to be:
|
|
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. |
|
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. |
|
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. |
|
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. |
|
nru |
(optional) Specifies how stateful session beans are selected for passivation. Allowed values are fifo, lru, and nru :
|
|
B |
(optional) Determines which commit option is used for entity beans. Legal values are B or C. |
|
domain-dir/session-store |
(optional) Specifies the directory where passivated stateful session beans and persisted HTTP sessions are stored in the file system. |
This element is deprecated. Use an application element instead.
Specifies a deployed EJB module.
The following table describes subelements for the ejb-module element.
Table 1–42 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. |
The following table describes attributes for the ejb-module element.
Table 1–43 ejb-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the EJB module. |
|
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/ |
|
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. |
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. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
Configures the EJB timer service.
The following table describes subelements for the ejb-timer-service element.
Table 1–44 ejb-timer-service Subelements
Element |
Required |
Description |
---|---|---|
zero or more |
Specifies a property or a variable. |
The following table describes attributes for the ejb-timer-service element.
Table 1–45 ejb-timer-service Attributes
Attribute |
Default |
Description |
---|---|---|
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. |
|
1 |
(optional) Specifies the maximum number of times the EJB timer service attempts to redeliver a timer expiration due for exception or rollback. |
|
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 ). |
|
5000 |
(optional) Specifies how long the EJB timer service waits after a failed ejbTimeout delivery before attempting a redelivery. |
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.
The following table describes subelements for the engine element.
Table 1–46 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. |
The following table describes attributes for the engine element.
Table 1–47 engine Attributes
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.
The following table describes subelements for the env-entry element.
Table 1–48 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. |
The following table describes attributes for the env-entry element.
Table 1–49 env-entry Attributes
Attribute |
Default |
Description |
---|---|---|
false |
(optional) If true, specifies that if the same environment entry occurs in the deployment descriptor it is ignored. |
Contains an environment entry name.
none - contains data
Contains an environment entry type.
none - contains data
Contains an environment entry value.
none - contains data
This element is deprecated. Use an application element instead.
Specifies a deployed extension module.
The following table describes subelements for the extension-module element.
Table 1–50 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. |
The following table describes attributes for the extension-module element.
Table 1–51 extension-module Attributes
Attribute |
Default |
Description |
---|---|---|
none |
The name of the extension module. |
|
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/ |
|
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 GlassFish Server, the GlassFish Server specifies the module type automatically. |
|
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. |
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. |
|
false |
(optional) Specifies whether the application has been deployed as a directory. |
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.
The following table describes subelements for the external-jndi-resource element.
Table 1–52 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. |
The following table describes attributes for the external-jndi-resource element.
Table 1–53 external-jndi-resource Attributes
Attribute |
Default |
Description |
---|---|---|
none |
Specifies the JNDI name for the resource. |
|
none |
Specifies the JNDI lookup name for the resource. |
|
none |
Specifies the fully qualified type of the resource. |
|
none |
Specifies the fully qualified name of the factory class, which implements javax.naming.spi.InitialContextFactory. For more information about JNDI, see the Oracle GlassFish Server 3.0.1 Application Development Guide. |
|
user |
(optional) Defines the type of the resource. Allowed values are:
|
|
enabled |
true |
(optional) Determines whether this resource is enabled at runtime. |