| type=page |
| status=published |
| title=Elements of the {productName} Deployment Descriptors |
| prev=dd-files.html |
| ~~~~~~ |
| |
| = Elements of the {productName} Deployment Descriptors |
| |
| [[GSDPG00007]][[beaqi]] |
| |
| |
| [[c-elements-of-the-glassfish-server-deployment-descriptors]] |
| == C Elements of the {productName} Deployment Descriptors |
| |
| This appendix describes the elements of the {productName}deployment descriptors. |
| |
| [[beaqs]][[GSDPG00085]][[activation-config]] |
| |
| === `activation-config` |
| |
| Specifies an activation configuration, which includes the runtime |
| configuration properties of the message-driven bean in its operational |
| environment. For example, this can include information about the name of |
| a physical JMS destination. Matches and overrides the |
| `activation-config` element in the `ejb-jar.xml` file. |
| |
| [[fvyoe]][[GSDPG00335]][[superelements]] |
| |
| ==== Superelements |
| |
| link:#beaus[`mdb-resource-adapter`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvynj]][[GSDPG00336]][[subelements]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `activation-config` |
| element. |
| |
| [[GSDPG838]][[sthref9]][[fvynw]] |
| |
| |
| Table C-1 `activation-config` subelements |
| |
| [width="100%",cols="32%,12%,56%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaso[`description`] |
| |
| |
| |zero or one |Specifies a text description of the activation |
| configuration. |
| |
| a| |
| link:#beaqt[`activation-config-property`] |
| |
| |
| |one or more |Specifies an activation configuration property. |
| |=== |
| |
| |
| [[beaqt]][[GSDPG00086]][[activation-config-property]] |
| |
| === `activation-config-property` |
| |
| Specifies the name and value of an activation configuration property. |
| |
| [[fvyne]][[GSDPG00337]][[superelements-1]] |
| |
| ==== Superelements |
| |
| link:#beaqs[`activation-config`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyns]][[GSDPG00338]][[subelements-1]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `activation-config-property` element. |
| |
| [[GSDPG839]][[sthref10]][[fvynv]] |
| |
| |
| Table C-2 `activation-config-property` subelements |
| |
| [width="100%",cols="39%,10%,51%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaqu[`activation-config-property-name`] |
| |
| |
| |only one |Specifies the name of an activation configuration property. |
| a| |
| link:#beaqv[`activation-config-property-value`] |
| |
| |
| |only one |Specifies the value of an activation configuration property. |
| |=== |
| |
| |
| [[beaqu]][[GSDPG00087]][[activation-config-property-name]] |
| |
| === `activation-config-property-name` |
| |
| Specifies the name of an activation configuration property. |
| |
| [[fvynm]][[GSDPG00339]][[superelements-2]] |
| |
| ==== Superelements |
| |
| link:#beaqt[`activation-config-property`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyok]][[GSDPG00340]][[subelements-2]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beaqv]][[GSDPG00088]][[activation-config-property-value]] |
| |
| === `activation-config-property-value` |
| |
| Specifies the value of an activation configuration property. |
| |
| [[fvyou]][[GSDPG00341]][[superelements-3]] |
| |
| ==== Superelements |
| |
| link:#beaqt[`activation-config-property`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyoz]][[GSDPG00342]][[subelements-3]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[giyhw]][[GSDPG00089]][[admin-object-resource]] |
| |
| === `admin-object-resource` |
| |
| Defines an administered object for an inbound resource adapter. |
| |
| [[GSDPG840]][[sthref11]] |
| |
| |
| [[superelements-4]] |
| ==== Superelements |
| |
| link:#giyiy[`resources`] (`glassfish-resources.xml`) |
| |
| [[GSDPG841]][[sthref12]] |
| |
| |
| [[subelements-4]] |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `admin-object-resource` element. |
| |
| [[GSDPG842]][[sthref13]][[sthref14]] |
| |
| |
| Table C-3 `admin-object-resource` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a|link:#beaso[`description`] |
| |zero or one |
| |Contains a text description of this element. |
| |
| a|link:#beavx[`property`] (with attributes) |
| |zero or more |
| |Specifies a property or a variable. |
| |=== |
| |
| |
| [[GSDPG843]][[sthref15]] |
| |
| |
| [[attributes]] |
| ==== Attributes |
| |
| The following table describes attributes for the `admin-object-resource` |
| element. |
| |
| [[GSDPG844]][[sthref16]][[sthref17]] |
| |
| |
| Table C-4 `admin-object-resource` Attributes |
| |
| [width="172%",cols="9%,46%,45%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`jndi-name` |none |Specifies the JNDI name for the resource. |
| |
| |`res-type` |none |Specifies the fully qualified type of the resource. |
| |
| |`res-adapter` |none |Specifies the name of the inbound resource |
| adapter. |
| |
| |`object-type` |`user` a| |
| (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. |
| |=== |
| |
| |
| [[GSDPG845]][[sthref18]] |
| |
| |
| [[properties]] |
| ==== Properties |
| |
| Properties of the `admin-object-resource` element are the names of |
| setter methods of the class referenced by the `adminobject-class` of the |
| `ra.xml` file. Some of the property names can be specified in the |
| `adminobjectType` element. |
| |
| [[beaqw]][[GSDPG00090]][[as-context]] |
| |
| === `as-context` |
| |
| Specifies the authentication mechanism used to authenticate the client. |
| |
| [[fvyos]][[GSDPG00343]][[superelements-5]] |
| |
| ==== Superelements |
| |
| link:#beato[`ior-security-config`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyom]][[GSDPG00344]][[subelements-5]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `as-context` element. |
| |
| [[GSDPG846]][[sthref19]][[fvyov]] |
| |
| |
| Table C-5 `as-context` Subelements |
| |
| [width="100%",cols="14%,10%,76%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaqx[`auth-method`] |
| |
| |
| |only one |Specifies the authentication method. The only supported |
| value is `USERNAME_PASSWORD`. |
| |
| a| |
| link:#beawi[`realm`] |
| |
| |
| |only one |Specifies the realm in which the user is authenticated. |
| |
| a| |
| link:#beawq[`required`] |
| |
| |
| |only one |Specifies whether the authentication method specified in the |
| `auth-method` element must be used for client authentication. |
| |=== |
| |
| |
| [[gjizj]][[GSDPG00091]][[archive-name]] |
| |
| === `archive-name` |
| |
| Specifies the name of the archive file. The value of the `archive-name` |
| element is used to derive the default application name when |
| `display-name` is not present in the `application.xml` file. The default |
| application name is the `archive-name` value minus the file extension. |
| For example, if `archive-name` is `foo.ear`, the default application |
| name is `foo`. |
| |
| [[gjizb]][[GSDPG00345]][[superelements-6]] |
| |
| ==== Superelements |
| |
| link:#beaxw[`glassfish-application`] (`glassfish-application.xml`) |
| |
| [[gjizg]][[GSDPG00346]][[subelements-6]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beaqx]][[GSDPG00092]][[auth-method]] |
| |
| === `auth-method` |
| |
| Specifies the authentication method. |
| |
| If the parent element is link:#beaqw[`as-context`], the only supported |
| value is `USERNAME_PASSWORD`. |
| |
| If the parent element is link:#beauk[`login-config`], specifies the |
| authentication mechanism for the web service endpoint. As a prerequisite |
| to gaining access to any web resources protected by an authorization |
| constraint, a user must be authenticated using the configured mechanism. |
| |
| [[fvyow]][[GSDPG00347]][[superelements-7]] |
| |
| ==== Superelements |
| |
| link:#beauk[`login-config`] (`glassfish-web.xml`), |
| link:#beaqw[`as-context`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyop]][[GSDPG00348]][[subelements-7]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beaqy]][[GSDPG00093]][[auth-realm]] |
| |
| === `auth-realm` |
| |
| JAAS is available on the ACC. Defines the optional configuration for a |
| JAAS authentication realm. Authentication realms require |
| provider-specific properties, which vary depending on what a particular |
| implementation needs. For more information about how to define realms, |
| see "link:application-development-guide/securing-apps.html#GSDVG00118[Realm Configuration]" in {productName} Application Development Guide. |
| |
| [[fvyot]][[GSDPG00349]][[superelements-8]] |
| |
| ==== Superelements |
| |
| link:#bearr[`client-container`] (`sun-acc.xml`) |
| |
| [[fvyor]][[GSDPG00350]][[subelements-8]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `auth-realm` element. |
| |
| [[GSDPG847]][[sthref20]][[fvyol]] |
| |
| |
| Table C-6 `auth-realm` subelement |
| |
| [width="100%",cols="36%,14%,50%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvyoy]][[GSDPG00351]][[attributes-1]] |
| |
| ==== `Attributes` |
| |
| The following table describes attributes for the `auth-realm` element. |
| |
| [[GSDPG848]][[sthref21]][[fvypa]] |
| |
| |
| Table C-7 `auth-realm` attributes |
| |
| [width="100%",cols="18%,13%,69%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`name` |none |Defines the name of this realm. |
| |`classname` |none |Defines the Java class which implements this realm. |
| |=== |
| |
| |
| [[fvyox]][[GSDPG00352]][[example]] |
| |
| ==== Example |
| |
| Here is an example of the default file realm: |
| |
| [source,xml] |
| ---- |
| <auth-realm name="file" |
| classname="com.sun.enterprise.security.auth.realm.file.FileRealm"> |
| <property name="file" value="domain-dir/config/keyfile"/> |
| <property name="jaas-context" value="fileRealm"/> |
| </auth-realm> |
| ---- |
| |
| Which properties an `auth-realm` element uses depends on the value of |
| the `auth-realm` element's `name` attribute. The file realm uses `file` |
| and `jaas-context` properties. Other realms use different properties. |
| See "link:application-development-guide/securing-apps.html#GSDVG00118[Realm Configuration]" in {productName} Application Development Guide. |
| |
| [[giyjv]][[GSDPG00094]][[backend-principal]] |
| |
| === `backend-principal` |
| |
| Specifies the user name and password required by the Enterprise |
| Information System (EIS). |
| |
| [[GSDPG849]][[sthref22]] |
| |
| |
| [[superelements-9]] |
| ==== Superelements |
| |
| link:#giyhy[`security-map`] (`glassfish-resources.xml`) |
| |
| [[GSDPG850]][[sthref23]] |
| |
| |
| [[subelements-9]] |
| ==== Subelements |
| |
| none |
| |
| [[GSDPG851]][[sthref24]] |
| |
| |
| [[attributes-2]] |
| ==== Attributes |
| |
| The following table describes attributes for the `backend-principal` |
| element. |
| |
| [[GSDPG852]][[sthref25]][[sthref26]] |
| |
| |
| Table C-8 `backend-principal` Attributes |
| |
| [width="100%",cols="26%,17%,57%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`user-name` |none |Specifies the user name required by the EIS. |
| |
| |`password` |none |(optional) Specifies the password required by the |
| EIS, if any. |
| |=== |
| |
| |
| [[beara]][[GSDPG00095]][[bean-cache]] |
| |
| === `bean-cache` |
| |
| Specifies the entity bean cache properties. Used for entity beans and |
| stateful session beans. |
| |
| [[fvyoq]][[GSDPG00353]][[superelements-10]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyon]][[GSDPG00354]][[subelements-10]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `bean-cache` element. |
| |
| [[GSDPG853]][[sthref27]][[fvypb]] |
| |
| |
| Table C-9 `bean-cache` Subelements |
| |
| [width="100%",cols="35%,11%,54%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beauo[`max-cache-size`] |
| |
| |
| |zero or one |Specifies the maximum number of beans allowable in cache. |
| |
| a| |
| link:#beatp[`is-cache-overflow-allowed`] |
| |
| |
| |zero or one |Deprecated. |
| |
| a| |
| link:#bearg[`cache-idle-timeout-in-seconds`] |
| |
| |
| |zero or one |Specifies the maximum time that a stateful session bean |
| or entity bean is allowed to be idle in cache before being passivated. |
| Default value is 10 minutes (600 seconds). |
| |
| a| |
| link:#beawl[`removal-timeout-in-seconds`] |
| |
| |
| |zero or one |Specifies the amount of time a bean remains before being |
| removed. If `removal-timeout-in-seconds` is less than `idle-timeout`, |
| the bean is removed without being passivated. |
| |
| a| |
| link:#beaws[`resize-quantity`] |
| |
| |
| |zero or one |Specifies the number of beans to be created if the pool |
| is empty (subject to the `max-pool-size` limit). Values are from 0 to |
| MAX_INTEGER. |
| |
| a| |
| link:#beayp[`victim-selection-policy`] |
| |
| |
| |zero or one |Specifies the algorithm that must be used by the |
| container to pick victims. Applies only to stateful session beans. |
| |=== |
| |
| |
| [[fvyoo]][[GSDPG00355]][[example-1]] |
| |
| ==== Example |
| |
| [source,xml] |
| ---- |
| <bean-cache> |
| <max-cache-size>100</max-cache-size> |
| <cache-resize-quantity>10</cache-resize-quantity> |
| <removal-timeout-in-seconds>3600</removal-timeout-in-seconds> |
| <victim-selection-policy>LRU</victim-selection-policy> |
| <cache-idle-timeout-in-seconds>600</cache-idle-timeout-in-seconds> |
| <removal-timeout-in-seconds>5400</removal-timeout-in-seconds> |
| </bean-cache> |
| ---- |
| |
| [[bearb]][[GSDPG00096]][[bean-pool]] |
| |
| === `bean-pool` |
| |
| Specifies the pool properties of stateless session beans, entity beans, |
| and message-driven bean. |
| |
| [[fvypc]][[GSDPG00356]][[superelements-11]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvypd]][[GSDPG00357]][[subelements-11]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `bean-pool` element. |
| |
| [[GSDPG854]][[sthref28]][[fvypg]] |
| |
| |
| Table C-10 `bean-pool` Subelements |
| |
| [width="100%",cols="34%,11%,55%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaxt[`steady-pool-size`] |
| |
| |
| |zero or one |Specifies the initial and minimum number of beans |
| maintained in the pool. Default is 32. |
| |
| a| |
| link:#beaws[`resize-quantity`] |
| |
| |
| |zero or one |Specifies the number of beans to be created if the pool |
| is empty (subject to the `max-pool-size` limit). Values are from 0 to |
| MAX_INTEGER. |
| |
| a| |
| link:#beaup[`max-pool-size`] |
| |
| |
| |zero or one |Specifies the maximum number of beans in the pool. Values |
| are from 0 to MAX_INTEGER. Default is to the EJB container value or 60. |
| |
| a| |
| link:#beauq[`max-wait-time-in-millis`] |
| |
| |
| |zero or one |Deprecated. |
| |
| a| |
| link:#beavr[`pool-idle-timeout-in-seconds`] |
| |
| |
| |zero or one |Specifies the maximum time that a bean is allowed to be |
| idle in the pool. After this time, the bean is removed. This is a hint |
| to the server. Default time is 600 seconds (10 minutes). |
| |=== |
| |
| |
| [[fvypf]][[GSDPG00358]][[example-2]] |
| |
| ==== Example |
| |
| [source,xml] |
| ---- |
| <bean-pool> |
| <steady-pool-size>10</steady-pool-size> |
| <resize-quantity>10</resize-quantity> |
| <max-pool-size>100</max-pool-size> |
| <pool-idle-timeout-in-seconds>600</pool-idle-timeout-in-seconds> |
| </bean-pool> |
| ---- |
| |
| [[beard]][[GSDPG00097]][[cache]] |
| |
| === `cache` |
| |
| Configures caching for web application components. |
| |
| [[fvype]][[GSDPG00359]][[superelements-12]] |
| |
| ==== Superelements |
| |
| link:#beayb[`glassfish-web-app`] (`glassfish-web.xml`) |
| |
| [[fvypl]][[GSDPG00360]][[subelements-12]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cache` element. |
| |
| [[GSDPG855]][[sthref29]][[fvyrd]] |
| |
| |
| Table C-11 `cache` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beare[`cache-helper`] |
| |
| |
| |zero or more |Specifies a custom class that implements the CacheHelper |
| interface. |
| |
| a| |
| link:#beasm[`default-helper`] |
| |
| |
| |zero or one |Allows you to change the properties of the default, |
| built-in link:#beare[`cache-helper`] class. |
| |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a cache property, which has a name and a |
| value. |
| |
| a| |
| link:#bearh[`cache-mapping`] |
| |
| |
| |zero or more |Maps a URL pattern or a servlet name to its cacheability |
| constraints. |
| |=== |
| |
| |
| [[fvypj]][[GSDPG00361]][[attributes-3]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `cache` element. |
| |
| [[GSDPG856]][[sthref30]][[fvyrt]] |
| |
| |
| Table C-12 `cache` Attributes |
| |
| [width="172%",cols="14%,46%,40%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`max-entries` |`4096` |(optional) Specifies the maximum number of |
| entries the cache can contain. Must be a positive integer. |
| |
| |`timeout-in-seconds` |`30` |(optional) Specifies the maximum amount of |
| time in seconds that an entry can remain in the cache after it is |
| created or refreshed. Can be overridden by a link:#beayg[`timeout`] |
| element. |
| |
| |`enabled` |`true` |(optional) Determines whether servlet and JSP |
| caching is enabled. |
| |=== |
| |
| |
| [[fvypx]][[GSDPG00362]][[properties-1]] |
| |
| ==== Properties |
| |
| The following table describes properties for the `cache` element. |
| |
| [[GSDPG857]][[sthref31]][[fvyqr]] |
| |
| |
| Table C-13 `cache` Properties |
| |
| [width="100%",cols="24%,23%,53%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`cacheClassName` |`com.sun.appserv.web.cache.LruCache` |Specifies the |
| fully qualified name of the class that implements the cache |
| functionality. See link:#fvyrn[Cache Class Names] for possible values. |
| |
| |`MultiLRUSegmentSize` |`4096` |Specifies the number of entries in a |
| segment of the cache table that should have its own LRU (least recently |
| used) list. Applicable only if `cacheClassName` is set to |
| `com.sun.appserv.web.cache.MultiLruCache`. |
| |
| |`MaxSize` |unlimited; `Long.MAX_VALUE` |Specifies an upper bound on the |
| cache memory size in bytes (KB or MB units). Example values are `32 KB` |
| or `2 MB`. Applicable only if `cacheClassName` is set to |
| `com.sun.appserv.web.cache.BoundedMultiLruCache`. |
| |=== |
| |
| |
| [[fvyrn]][[GSDPG00363]][[cache-class-names]] |
| |
| ==== Cache Class Names |
| |
| The following table lists possible values of the `cacheClassName` |
| property. |
| |
| [[GSDPG858]][[sthref32]][[fvyph]] |
| |
| |
| Table C-14 `cacheClassName` Values |
| |
| [width="100%",cols="31%,69%",options="header",] |
| |=== |
| |Value |Description |
| |`com.sun.appserv.web.cache.LruCache` |A bounded cache with an LRU |
| (least recently used) cache replacement policy. |
| |
| |`com.sun.appserv.web.cache.BaseCache` |An unbounded cache suitable if |
| the maximum number of entries is known. |
| |
| |`com.sun.appserv.web.cache.MultiLruCache` |A cache suitable for a large |
| number of entries (>4096). Uses the `MultiLRUSegmentSize` property. |
| |
| |`com.sun.appserv.web.cache.BoundedMultiLruCache` |A cache suitable for |
| limiting the cache size by memory rather than number of entries. Uses |
| the `MaxSize` property. |
| |=== |
| |
| |
| [[beare]][[GSDPG00098]][[cache-helper]] |
| |
| === `cache-helper` |
| |
| Specifies a class that implements the |
| com.sun.appserv.web.cache.CacheHelper interface. |
| |
| [[fvyqy]][[GSDPG00364]][[superelements-13]] |
| |
| ==== Superelements |
| |
| link:#beard[`cache`] (`glassfish-web.xml`) |
| |
| [[fvyru]][[GSDPG00365]][[subelements-13]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cache-helper` |
| element. |
| |
| [[GSDPG859]][[sthref33]][[fvyql]] |
| |
| |
| Table C-15 `cache-helper` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvyqu]][[GSDPG00366]][[attributes-4]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `cache-helper` element. |
| |
| [[GSDPG860]][[sthref34]][[fvyrp]] |
| |
| |
| Table C-16 `cache-helper` Attributes |
| |
| [width="181%",cols="8%,49%,43%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`name` |`default` |Specifies a unique name for the helper class, which |
| is referenced in the link:#bearh[`cache-mapping`] element. |
| |
| |`class-name` |none |Specifies the fully qualified class name of the |
| cache helper, which must implement the com.sun.appserv.web.CacheHelper |
| interface. |
| |=== |
| |
| |
| [[bearf]][[GSDPG00099]][[cache-helper-ref]] |
| |
| === `cache-helper-ref` |
| |
| Specifies the `name` of the link:#beare[`cache-helper`] used by the |
| parent link:#bearh[`cache-mapping`] element. |
| |
| [[fvypq]][[GSDPG00367]][[superelements-14]] |
| |
| ==== Superelements |
| |
| link:#bearh[`cache-mapping`] (`glassfish-web.xml`) |
| |
| [[fvyqs]][[GSDPG00368]][[subelements-14]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[bearg]][[GSDPG00100]][[cache-idle-timeout-in-seconds]] |
| |
| === `cache-idle-timeout-in-seconds` |
| |
| 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. Default is 600. |
| |
| Applies to stateful session beans and entity beans. |
| |
| [[fvyqc]][[GSDPG00369]][[superelements-15]] |
| |
| ==== Superelements |
| |
| link:#beara[`bean-cache`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyqo]][[GSDPG00370]][[subelements-15]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[bearh]][[GSDPG00101]][[cache-mapping]] |
| |
| === `cache-mapping` |
| |
| Maps a URL pattern or a servlet name to its cacheability constraints. |
| |
| [[fvyqi]][[GSDPG00371]][[superelements-16]] |
| |
| ==== Superelements |
| |
| link:#beard[`cache`] (`glassfish-web.xml`) |
| |
| [[fvyqn]][[GSDPG00372]][[subelements-16]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cache-mapping` |
| element. |
| |
| [[GSDPG861]][[sthref35]][[fvypt]] |
| |
| |
| Table C-17 `cache-mapping` Subelements |
| |
| [width="100%",cols="20%,30%,50%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaxo[`servlet-name`] |
| |
| |
| |requires one `servlet-name` or `url-pattern` |Contains the name of a |
| servlet. |
| |
| a| |
| link:#beayl[`url-pattern`] |
| |
| |
| |requires one `servlet-name` or `url-pattern` |Contains a servlet URL |
| pattern for which caching is enabled. |
| |
| a| |
| link:#bearf[`cache-helper-ref`] |
| |
| |
| |required if `dispatcher`, `timeout`, `refresh-field`, `http-method`, |
| `key-field`, and `constraint-field` are not used |Contains the `name` of |
| the link:#beare[`cache-helper`] used by the parent `cache-mapping` |
| element. |
| |
| a| |
| link:#beasp[`dispatcher`] |
| |
| |
| |zero or one if `cache-helper-ref` is not used |Contains a |
| comma-separated list of `RequestDispatcher` methods for which caching is |
| enabled. |
| |
| a| |
| link:#beayg[`timeout`] |
| |
| |
| |zero or one if `cache-helper-ref` is not used |Contains the |
| link:#bearh[`cache-mapping`] specific maximum amount of time in seconds |
| that an entry can remain in the cache after it is created or refreshed. |
| |
| a| |
| link:#beawj[`refresh-field`] |
| |
| |
| |zero or one if `cache-helper-ref` is not used |Specifies a field that |
| gives the application component a programmatic way to refresh a cached |
| entry. |
| |
| a| |
| link:#beatk[`http-method`] |
| |
| |
| |zero or more if `cache-helper-ref` is not used |Contains an HTTP |
| method that is eligible for caching. |
| |
| a| |
| link:#beatz[`key-field`] |
| |
| |
| |zero or more if `cache-helper-ref` is not used |Specifies a component |
| of the key used to look up and extract cache entries. |
| |
| a| |
| link:#bease[`constraint-field`] |
| |
| |
| |zero or more if `cache-helper-ref` is not used |Specifies a |
| cacheability constraint for the given `url-pattern` or `servlet-name`. |
| |=== |
| |
| |
| [[beari]][[GSDPG00102]][[call-property]] |
| |
| === `call-property` |
| |
| Specifies JAX-RPC property values that can be set on a |
| `javax.xml.rpc.Call` object before it is returned to the web service |
| client. The property names can be any properties supported by the |
| JAX-RPC `Call` implementation. |
| |
| [[fvyri]][[GSDPG00373]][[superelements-17]] |
| |
| ==== Superelements |
| |
| link:#beavt[`port-info`], link:#beaxk[`service-ref`] |
| (`glassfish-web.xml`, `glassfish-ejb-jar.xml`, |
| `glassfish-application-client.xml`) |
| |
| [[fvyqp]][[GSDPG00374]][[subelements-17]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `call-property` |
| element. |
| |
| [[GSDPG862]][[sthref36]][[fvyrw]] |
| |
| |
| Table C-18 `call-property` subelements |
| |
| [width="100%",cols="24%,12%,64%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavf[`name`] |
| |
| |
| |only one |Specifies the name of the entity. |
| a| |
| link:#beayo[`value`] |
| |
| |
| |only one |Specifies the value of the entity. |
| |=== |
| |
| |
| [[bearj]][[GSDPG00103]][[caller-propagation]] |
| |
| === `caller-propagation` |
| |
| Specifies whether the target accepts propagated caller identities. The |
| values are `NONE`, `SUPPORTED`, or `REQUIRED`. |
| |
| [[fvyqj]][[GSDPG00375]][[superelements-18]] |
| |
| ==== Superelements |
| |
| link:#beaxb[`sas-context`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyrb]][[GSDPG00376]][[subelements-18]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beark]][[GSDPG00104]][[cert-db]] |
| |
| === `cert-db` |
| |
| Not implemented. Included for backward compatibility only. Attribute |
| values are ignored. |
| |
| [[fvyqa]][[GSDPG00377]][[superelements-19]] |
| |
| ==== Superelements |
| |
| link:#beaxf[`security`] (`sun-acc.xml`) |
| |
| [[fvyre]][[GSDPG00378]][[subelements-19]] |
| |
| ==== Subelements |
| |
| none |
| |
| [[fvyrr]][[GSDPG00379]][[attributes-5]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `cert-db` element. |
| |
| [[GSDPG863]][[sthref37]][[fvypo]] |
| |
| |
| Table C-19 `cert-db` attributes |
| |
| [width="100%",cols="14%,11%,75%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`path` |none |Specifies the absolute path of the certificate database. |
| |
| |`password` |none |Specifies the password to access the certificate |
| database. |
| |=== |
| |
| |
| [[bearl]][[GSDPG00105]][[check-all-at-commit]] |
| |
| === `check-all-at-commit` |
| |
| This element is not implemented. Do not use. |
| |
| [[fvyrj]][[GSDPG00380]][[superelements-20]] |
| |
| ==== Superelements |
| |
| link:#beasd[`consistency`] (`sun-cmp-mappings.xml`) |
| |
| [[bearm]][[GSDPG00106]][[check-modified-at-commit]] |
| |
| === `check-modified-at-commit` |
| |
| Checks concurrent modification of fields in modified beans at commit |
| time. |
| |
| [[fvyqf]][[GSDPG00381]][[superelements-21]] |
| |
| ==== Superelements |
| |
| link:#beasd[`consistency`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyqz]][[GSDPG00382]][[subelements-20]] |
| |
| ==== Subelements |
| |
| none - element is present or absent |
| |
| [[bearn]][[GSDPG00107]][[check-version-of-accessed-instances]] |
| |
| === `check-version-of-accessed-instances` |
| |
| Checks the version column of the modified beans. |
| |
| Version consistency allows the bean state to be cached between |
| transactions instead of read from a database. The bean state is verified |
| by primary key and version column values. This occurs during a custom |
| query (for dirty instances only) or commit (for both clean and dirty |
| instances). |
| |
| The version column must be a numeric type, and must be in the primary |
| table. You must provide appropriate update triggers for this column. |
| |
| [[fvyqt]][[GSDPG00383]][[superelements-22]] |
| |
| ==== Superelements |
| |
| link:#beasd[`consistency`] (`sun-cmp-mappings.xml`) |
| |
| [[fvypp]][[GSDPG00384]][[subelements-21]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `check-version-of-accessed-instances` element. |
| |
| [[GSDPG864]][[sthref38]][[fvyrq]] |
| |
| |
| Table C-20 `check-version-of-accessed-instances` Subelements |
| |
| [width="100%",cols="33%,11%,56%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#bearz[`column-name`] |
| |
| |
| |only one |Specifies the name of the version column. |
| |=== |
| |
| |
| [[bearo]][[GSDPG00108]][[checkpoint-at-end-of-method]] |
| |
| === `checkpoint-at-end-of-method` |
| |
| Specifies that the stateful session bean state is checkpointed, or |
| persisted, after the specified methods are executed. The |
| `availability-enabled` attribute of the parent link:#beass[`ejb`] |
| element must be set to `true`. |
| |
| [[fvypr]][[GSDPG00385]][[superelements-23]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyqe]][[GSDPG00386]][[subelements-22]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `checkpoint-at-end-of-method` element. |
| |
| [[GSDPG865]][[sthref39]][[fvyqx]] |
| |
| |
| Table C-21 `checkpoint-at-end-of-method` Subelements |
| |
| [width="100%",cols="25%,13%,62%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beauz[`method`] |
| |
| |
| |one or more |Specifies a bean method. |
| |=== |
| |
| |
| [[bearp]][[GSDPG00109]][[checkpointed-methods]] |
| |
| === `checkpointed-methods` |
| |
| Deprecated. Supported for backward compatibility. Use |
| link:#bearo[`checkpoint-at-end-of-method`] instead. |
| |
| [[fvyrk]][[GSDPG00387]][[superelements-24]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[bearq]][[GSDPG00110]][[class-loader]] |
| |
| === `class-loader` |
| |
| Configures the class loader for the web module. |
| |
| [[fvyrv]][[GSDPG00388]][[superelements-25]] |
| |
| ==== Superelements |
| |
| link:#beayb[`glassfish-web-app`] (`glassfish-web.xml`) |
| |
| [[fvyrh]][[GSDPG00389]][[subelements-23]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `class-loader` |
| element. |
| |
| [[GSDPG866]][[sthref40]][[fvyqg]] |
| |
| |
| Table C-22 `class-loader` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvyrl]][[GSDPG00390]][[attributes-6]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `class-loader` element. |
| |
| [[GSDPG867]][[sthref41]][[fvyrs]] |
| |
| |
| Table C-23 `class-loader` Attributes |
| |
| [width="172%",cols="17%,46%,37%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`extra-class-path` |null a| |
| (optional) Specifies a colon or semicolon separated list of additional |
| classpaths for this web module. Paths can be absolute or relative to the |
| web module's root, for example: |
| |
| [source] |
| ---- |
| extra-class-path="WEB-INF/lib/extra/extra.jar" |
| ---- |
| |
| |`delegate` |`true` a| |
| (optional) If `true`, the web module follows the standard class loader |
| delegation model and delegates to its parent class loader first before |
| looking in the local class loader. You must set this to `true` for a web |
| module that accesses EJB components or that acts as a web service client |
| or endpoint. |
| |
| If `false`, the web module follows the delegation model specified in the |
| Servlet specification and looks in its class loader before looking in |
| the parent class loader. It's safe to set this to `false` only for a web |
| module that does not interact with any other modules. |
| |
| For a number of packages, including `java.*` and `javax.*`, symbol |
| resolution is always delegated to the parent class loader regardless of |
| the delegate setting. This prevents applications from overriding core |
| Java runtime classes or changing the API versions of specifications that |
| are part of the Jakarta EE platform. |
| |
| |`dynamic-reload-interval` | |(optional) Not implemented. Included |
| for backward compatibility with previous Oracle Web Server versions. |
| |=== |
| |
| |
| |
| [NOTE] |
| ==== |
| If the `delegate` attribute is set to `false`, the class loader |
| delegation behavior complies with the Servlet 2.4 specification, section |
| 9.7.2. If set to its default value of `true`, classes and resources |
| residing in container-wide library JAR files are loaded in preference to |
| classes and resources packaged within the WAR file. |
| |
| Portable programs that use this element should not be packaged with any |
| classes or interfaces that are a part of the Jakarta EE specification. The |
| behavior of a program that includes such classes or interfaces in its |
| WAR file is undefined. |
| ==== |
| |
| |
| [[gcfko]][[GSDPG00391]][[properties-2]] |
| |
| ==== Properties |
| |
| The following table describes properties for the `class-loader` element. |
| |
| [[GSDPG868]][[sthref42]][[gcfjs]] |
| |
| |
| Table C-24 `class-loader` Properties |
| |
| [width="181%",cols="15%,49%,36%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`ignoreHiddenJarFiles` |`false` |If `true`, specifies that all JAR and |
| ZIP files in the `WEB-INF/lib` directory that start with a period (`.`) |
| are ignored by the class loader. |
| |=== |
| |
| |
| [[bearr]][[GSDPG00111]][[client-container]] |
| |
| === `client-container` |
| |
| Defines the {productName} specific configuration for the application |
| client container. This is the root element; there can only be one |
| `client-container` element in a `sun-acc.xml` file. See |
| link:dd-files.html#beaqp[The sun-acc.xml File]. |
| |
| [[fvypv]][[GSDPG00392]][[superelements-26]] |
| |
| ==== Superelements |
| |
| none |
| |
| [[fvypk]][[GSDPG00393]][[subelements-24]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `client-container` |
| element. |
| |
| [[GSDPG869]][[sthref43]][[fvypm]] |
| |
| |
| Table C-25 `client-container` Subelements |
| |
| [width="100%",cols="28%,12%,60%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaye[`target-server`] |
| |
| |
| |one or more a| |
| Specifies the IIOP listener for the target server. Also specifies IIOP |
| endpoints used for load balancing. If the {productName} instance on |
| which the application client is deployed participates in a cluster, |
| {productName} finds all currently active IIOP endpoints in the |
| cluster automatically. However, a client should have at least two |
| endpoints specified for bootstrapping purposes, in case one of the |
| endpoints has failed. |
| |
| A listener or endpoint is in the form host`:`port, where the host is an |
| IP address or host name, and the port specifies the port number. |
| |
| a| |
| link:#beaqy[`auth-realm`] |
| |
| |
| |zero or one |Specifies the optional configuration for JAAS |
| authentication realm. |
| |
| a| |
| link:#bears[`client-credential`] |
| |
| |
| |zero or one |Specifies the default client credential that is sent to |
| the server. |
| |
| a| |
| link:#beauj[`log-service`] |
| |
| |
| |zero or one |Specifies the default log file and the severity level of |
| the message. |
| |
| a| |
| link:#beauy[`message-security-config`] |
| |
| |
| |zero or more |Specifies configurations for message security providers. |
| |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvyqq]][[GSDPG00394]][[attributes-7]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `client-container` |
| element. |
| |
| [[GSDPG870]][[sthref44]][[fvyqb]] |
| |
| |
| Table C-26 `client-container` Attributes |
| |
| [width="172%",cols="11%,46%,43%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`send-password` |`true` |If `true`, specifies that client |
| authentication credentials must be sent to the server. Without |
| authentication credentials, all access to protected EJB components |
| results in exceptions. |
| |=== |
| |
| |
| [[fvyrm]][[GSDPG00395]][[properties-3]] |
| |
| ==== Properties |
| |
| The following table describes properties for the `client-container` |
| element. |
| |
| [[GSDPG871]][[sthref45]][[fvyqm]] |
| |
| |
| Table C-27 `client-container` Properties |
| |
| [width="172%",cols="22%,46%,32%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`com.sun.appserv.iiop.endpoints` |none |Specifies a comma-separated |
| list of one or more IIOP endpoints used for load balancing. An IIOP |
| endpoint is in the form host`:`port, where the host is an IP address or |
| host name, and the port specifies the port number. Deprecated. Use |
| link:#beaye[`target-server`] elements instead. |
| |=== |
| |
| |
| [[bears]][[GSDPG00112]][[client-credential]] |
| |
| === `client-credential` |
| |
| Default client credentials that are sent to the server. If this element |
| is present, the credentials are automatically sent to the server, |
| without prompting the user for the user name and password on the client |
| side. |
| |
| [[fvyqk]][[GSDPG00396]][[superelements-27]] |
| |
| ==== Superelements |
| |
| link:#bearr[`client-container`] (`sun-acc.xml`) |
| |
| [[fvyqd]][[GSDPG00397]][[subelements-25]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `client-credential` |
| element. |
| |
| [[GSDPG872]][[sthref46]][[fvyro]] |
| |
| |
| Table C-28 `client-credential` subelement |
| |
| [width="100%",cols="37%,14%,49%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvyqv]][[GSDPG00398]][[attributes-8]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `client-credential` |
| element. |
| |
| [[GSDPG873]][[sthref47]][[fvypi]] |
| |
| |
| Table C-29 `client-credential` attributes |
| |
| [width="100%",cols="12%,14%,74%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`user-name` |none |The user name used to authenticate the Application |
| client container. |
| |
| |`password` |none |The password used to authenticate the Application |
| client container. |
| |
| |`realm` |default realm for the domain |(optional) The realm (specified |
| by name) where credentials are to be resolved. |
| |=== |
| |
| |
| [[beart]][[GSDPG00113]][[cmp]] |
| |
| `cmp` |
| ~~~~~ |
| |
| Describes runtime information for a CMP entity bean object for EJB 1.1 |
| and EJB 2.1 beans. |
| |
| [[fvyrg]][[GSDPG00399]][[superelements-28]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyqw]][[GSDPG00400]][[subelements-26]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cmp` element. |
| |
| [[GSDPG874]][[sthref48]][[fvypw]] |
| |
| |
| Table C-30 `cmp` Subelements |
| |
| [width="100%",cols="22%,11%,67%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaun[`mapping-properties`] |
| |
| |
| |zero or one |This element is not implemented. |
| |
| a| |
| link:#beatq[`is-one-one-cmp`] |
| |
| |
| |zero or one |This element is not implemented. |
| |
| a| |
| link:#beavk[`one-one-finders`] |
| |
| |
| |zero or one |Describes the finders for CMP 1.1 beans. |
| |
| a| |
| link:#beavu[`prefetch-disabled`] |
| |
| |
| |zero or one |Disables prefetching of entity bean states for the |
| specified query methods. |
| |=== |
| |
| |
| [[bearu]][[GSDPG00114]][[cmp-field-mapping]] |
| |
| === `cmp-field-mapping` |
| |
| The `cmp-field-mapping` element associates a field with one or more |
| columns to which it maps. The column can be from a bean's primary table |
| or any defined secondary table. If a field is mapped to multiple |
| columns, the column listed first in this element is used as a source for |
| getting the value from the database. The columns are updated in the |
| order they appear. There is one `cmp-field-mapping` element for each |
| `cmp-field` element defined in the `ejb-jar.xml` file. |
| |
| [[fvypy]][[GSDPG00401]][[superelements-29]] |
| |
| ==== Superelements |
| |
| link:#beasy[`entity-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyra]][[GSDPG00402]][[subelements-27]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cmp-field-mapping` |
| element. |
| |
| [[GSDPG875]][[sthref49]][[fvyqh]] |
| |
| |
| Table C-31 `cmp-field-mapping` Subelements |
| |
| [width="100%",cols="15%,12%,73%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beatd[`field-name`] |
| |
| |
| |only one |Specifies the Java identifier of a field. This identifier |
| must match the value of the `field-name` subelement of the `cmp-field` |
| that is being mapped. |
| |
| a| |
| link:#bearz[`column-name`] |
| |
| |
| |one or more |Specifies the name of a column from the primary table, or |
| the qualified table name (TABLE.COLUMN) of a column from a secondary or |
| related table. |
| |
| a| |
| link:#beawh[`read-only`] |
| |
| |
| |zero or one |Specifies that a field is read-only. |
| |
| a| |
| link:#beatc[`fetched-with`] |
| |
| |
| |zero or one |Specifies the fetch group for this CMP field's mapping. |
| |=== |
| |
| |
| [[bearv]][[GSDPG00115]][[cmp-resource]] |
| |
| === `cmp-resource` |
| |
| Specifies the database to be used for storing CMP beans. For more |
| information about this element, see "link:application-development-guide/container_managed-persistence.html#GSDVG00154[Configuring the |
| CMP Resource]" in {productName} Application |
| Development Guide. |
| |
| [[fvypz]][[GSDPG00403]][[superelements-30]] |
| |
| ==== Superelements |
| |
| link:#beasx[`enterprise-beans`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyrf]][[GSDPG00404]][[subelements-28]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cmp-resource` |
| element. |
| |
| [[GSDPG876]][[sthref50]][[fvyps]] |
| |
| |
| Table C-32 `cmp-resource` Subelements |
| |
| [width="100%",cols="33%,12%,55%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beatw[`jndi-name`] |
| |
| |
| |only one |Specifies the absolute `jndi-name` of a JDBC resource. |
| |
| a| |
| link:#beasn[`default-resource-principal`] |
| |
| |
| |zero or one |Specifies the default runtime bindings of a resource |
| reference. |
| |
| a| |
| link:#beavy[`property` (with subelements)] |
| |
| |
| |zero or more |Specifies a property name and value. Used to configure |
| `PersistenceManagerFactory` properties. |
| |
| a| |
| link:#beasi[`create-tables-at-deploy`] |
| |
| |
| |zero or one |If `true`, specifies that database tables are created for |
| beans that are automatically mapped by the EJB container. |
| |
| a| |
| link:#beasq[`drop-tables-at-undeploy`] |
| |
| |
| |zero or one |If `true`, specifies that database tables that were |
| automatically created when the bean(s) were last deployed are dropped |
| when the bean(s) are undeployed. |
| |
| a| |
| link:#beask[`database-vendor-name`] |
| |
| |
| |zero or one |Specifies the name of the database vendor for which |
| tables can be created. |
| |
| a| |
| link:#beaxd[`schema-generator-properties`] |
| |
| |
| |zero or one |Specifies field-specific type mappings and allows you to |
| set the `use-unique-table-names` property. |
| |=== |
| |
| |
| [[bearw]][[GSDPG00116]][[cmr-field-mapping]] |
| |
| === `cmr-field-mapping` |
| |
| A container-managed relationship field has a name and one or more column |
| pairs that define the relationship. There is one `cmr-field-mapping` |
| element for each `cmr-field` element in the `ejb-jar.xml` file. A |
| relationship can also participate in a fetch group. |
| |
| [[fvyrc]][[GSDPG00405]][[superelements-31]] |
| |
| ==== Superelements |
| |
| link:#beasy[`entity-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvypu]][[GSDPG00406]][[subelements-29]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cmr-field-mapping` |
| element. |
| |
| [[GSDPG877]][[sthref51]][[fvypn]] |
| |
| |
| Table C-33 `cmr-field-mapping` Subelements |
| |
| [width="100%",cols="18%,12%,70%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#bearx[`cmr-field-name`] |
| |
| |
| |only one |Specifies the Java identifier of a field. Must match the |
| value of the `cmr-field-name` subelement of the `cmr-field` that is |
| being mapped. |
| |
| a| |
| link:#beasa[`column-pair`] |
| |
| |
| |one or more |Specifies the pair of columns that determine the |
| relationship between two database tables. |
| |
| a| |
| link:#beatc[`fetched-with`] |
| |
| |
| |zero or one |Specifies the fetch group for this CMR field's |
| relationship. |
| |=== |
| |
| |
| [[bearx]][[GSDPG00117]][[cmr-field-name]] |
| |
| === `cmr-field-name` |
| |
| Specifies the Java identifier of a field. Must match the value of the |
| `cmr-field-name` subelement of the `cmr-field` element in the |
| `ejb-jar.xml` file. |
| |
| [[fvyrx]][[GSDPG00407]][[superelements-32]] |
| |
| ==== Superelements |
| |
| link:#bearw[`cmr-field-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyry]][[GSDPG00408]][[subelements-30]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beary]][[GSDPG00118]][[cmt-timeout-in-seconds]] |
| |
| === `cmt-timeout-in-seconds` |
| |
| Overrides the Transaction Timeout setting of the Transaction Service for |
| an individual bean. The default value, `0`, specifies that the default |
| Transaction Service timeout is used. If positive, this value is used for |
| all methods in the bean that start a new container-managed transaction. |
| This value is not used if the bean joins a client transaction. |
| |
| [[fvysf]][[GSDPG00409]][[superelements-33]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvysc]][[GSDPG00410]][[subelements-31]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[bearz]][[GSDPG00119]][[column-name]] |
| |
| === `column-name` |
| |
| Specifies the name of a column from the primary table, or the qualified |
| table name (TABLE.COLUMN) of a column from a secondary or related table. |
| |
| [[fvyse]][[GSDPG00411]][[superelements-34]] |
| |
| ==== Superelements |
| |
| link:#bearn[`check-version-of-accessed-instances`], |
| link:#bearu[`cmp-field-mapping`], link:#beasa[`column-pair`] |
| (`sun-cmp-mappings.xml`) |
| |
| [[fvysb]][[GSDPG00412]][[subelements-32]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasa]][[GSDPG00120]][[column-pair]] |
| |
| === `column-pair` |
| |
| Specifies the pair of columns that determine the relationship between |
| two database tables. Each `column-pair` must contain exactly two |
| `column-name` subelements, which specify the column's names. The first |
| `column-name` element names the table that this bean is mapped to, and |
| the second `column-name` names the column in the related table. |
| |
| [[fvysa]][[GSDPG00413]][[superelements-35]] |
| |
| ==== Superelements |
| |
| link:#bearw[`cmr-field-mapping`], link:#beaxe[`secondary-table`] |
| (`sun-cmp-mappings.xml`) |
| |
| [[fvysg]][[GSDPG00414]][[subelements-33]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `column-pair` element. |
| |
| [[GSDPG878]][[sthref52]][[fvysh]] |
| |
| |
| Table C-34 `column-pair` Subelements |
| |
| [width="100%",cols="14%,10%,76%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#bearz[`column-name`] |
| |
| |
| |two |Specifies the name of a column from the primary table, or the |
| qualified table name (TABLE.COLUMN) of a column from a secondary or |
| related table. |
| |=== |
| |
| |
| [[beasb]][[GSDPG00121]][[commit-option]] |
| |
| === `commit-option` |
| |
| Specifies the commit option used on transaction completion. Valid values |
| for {productName} are `B` or `C`. Default value is `B`. Applies to |
| entity beans. |
| |
| |
| [NOTE] |
| ==== |
| Commit option A is not supported for this {productName} release. |
| ==== |
| |
| |
| [[fvyrz]][[GSDPG00415]][[superelements-36]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvysd]][[GSDPG00416]][[subelements-34]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[gjjak]][[GSDPG00122]][[compatibility]] |
| |
| === `compatibility` |
| |
| Specifies the {productName} release with which to be backward |
| compatible in terms of JAR visibility requirements for applications. The |
| current allowed value is `v2`, which refers to {productName} version |
| 2 or {productName} version 9.1 or 9.1.1. Starting in Jakarta EE 6, the |
| Jakarta EE specification imposes stricter requirements than Jakarta EE 5 did |
| on which JAR files can be visible to various modules within an EAR file. |
| Setting this element to `v2` removes these Jakarta EE 6 and later |
| restrictions. |
| |
| [[gjjaf]][[GSDPG00417]][[superelements-37]] |
| |
| ==== Superelements |
| |
| link:#beaxw[`glassfish-application`] (`glassfish-application.xml`), |
| link:#beaya[`glassfish-ejb-jar`] (`glassfish-ejb-jar.xml`) |
| |
| [[gjjag]][[GSDPG00418]][[subelements-35]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasc]][[GSDPG00123]][[confidentiality]] |
| |
| === `confidentiality` |
| |
| Specifies if the target supports privacy-protected messages. The values |
| are `NONE`, `SUPPORTED`, or `REQUIRED`. |
| |
| [[fvysi]][[GSDPG00419]][[superelements-38]] |
| |
| ==== Superelements |
| |
| link:#beayh[`transport-config`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvysk]][[GSDPG00420]][[subelements-36]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[giygu]][[GSDPG00124]][[connector-connection-pool]] |
| |
| === `connector-connection-pool` |
| |
| Defines a connector connection pool. |
| |
| [[GSDPG879]][[sthref53]] |
| |
| |
| [[superelements-39]] |
| ==== Superelements |
| |
| link:#giyiy[`resources`] (`glassfish-resources.xml`) |
| |
| [[GSDPG880]][[sthref54]] |
| |
| |
| [[subelements-37]] |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `connector-connection-pool` element. |
| |
| [[GSDPG881]][[sthref55]][[sthref56]] |
| |
| |
| Table C-35 `connector-connection-pool` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaso[`description`] |
| |
| |
| |zero or one |Contains a text description of this element. |
| |
| a| |
| link:#giyhy[`security-map`] |
| |
| |
| |zero or more |Maps the principal received during servlet or EJB |
| authentication to the credentials accepted by the EIS. |
| |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property or a variable. |
| |=== |
| |
| |
| [[GSDPG882]][[sthref57]] |
| |
| |
| [[attributes-9]] |
| ==== Attributes |
| |
| The following table describes attributes for the |
| `connector-connection-pool` element. Changing the following attributes |
| requires a server restart or the redeployment or disabling and |
| re-enabling of applications that refer to the resource: |
| `resource-adapter-name`, `connection-definition-name`, |
| `transaction-support`, `associate-with-thread`, |
| `lazy-connection-association`, and `lazy-connection-enlistment`. |
| |
| [[GSDPG883]][[sthref58]][[sthref59]] |
| |
| |
| Table C-36 `connector-connection-pool` Attributes |
| |
| [width="172%",cols="25%,46%,29%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`name` |none |Specifies the name of the connection pool. A |
| link:#giyhv[`connector-resource`] element's `pool-name` attribute refers |
| to this `name`. |
| |
| |`resource-adapter-name` |none |Specifies the name of the deployed |
| connector module or application. If no name is specified during |
| deployment, the name of the `.rar` file is used. If the resource adapter |
| is embedded in an application, then it is app_name``#``rar_name. |
| |
| |`connection-definition-name` |none |Specifies a unique name, |
| identifying a resource adapter's `connection-definition` element in the |
| `ra.xml` file. This is usually the `connectionfactory-interface` of the |
| `connection-definition` element. |
| |
| |`steady-pool-size` |`8` |(optional) Specifies the initial and minimum |
| number of connections maintained in the pool. |
| |
| |`max-pool-size` |`32` |(optional) Specifies the maximum number of |
| connections that can be created to satisfy client requests. |
| |
| |`max-wait-time-in-millis` |`60000` |(optional) Specifies the amount |
| of time, in milliseconds, that the caller is willing to wait for a |
| connection. If `0`, the caller is blocked indefinitely until a resource |
| is available or an error occurs. |
| |
| |`pool-resize-quantity` |`2` a| |
| (optional) Specifies the number of idle connections to be destroyed if |
| the existing number of connections is above the `steady-pool-size` |
| (subject to the `max-pool-size` limit). |
| |
| This is enforced periodically at the `idle-timeout-in-seconds` interval. |
| An idle connection is one that has not been used for a period of |
| `idle-timeout-in-seconds`. When the pool size reaches |
| `steady-pool-size`, connection removal stops. |
| |
| |`idle-timeout-in-seconds` |`300` |(optional) Specifies the maximum |
| time that a connection can remain idle in the pool. After this amount of |
| time, the pool can close this connection. |
| |
| |`fail-all-connections` |`false` |(optional) If `true`, closes all |
| connections in the pool if a single validation check fails. |
| |
| |``transaction``-support` |none a| |
| (optional) Specifies the transaction support for this connection pool. |
| Overrides the transaction support defined in the resource adapter in a |
| downward compatible way: supports a transaction level lower than or |
| equal to the resource adapter's, but not higher. Allowed values in |
| descending order are: |
| |
| * `XATransaction` - Supports distributed transactions. |
| * `LocalTransaction` - Supports local transactions only. |
| * `NoTransaction` - No transaction support. |
| |
| |`is-connection-validation-required` |`false` |(optional) Specifies |
| whether connections have to be validated before being given to the |
| application. If a resource's validation fails, it is destroyed, and a |
| new resource is created and returned. |
| |
| |`validate-atmost-once-period-in-seconds` |`0` |Specifies the time |
| interval within which a connection is validated at most once. Minimizes |
| the number of validation calls. A value of zero allows unlimited |
| validation calls. |
| |
| |`connection-leak-timeout-in-seconds` |`0` |Detects potential |
| connection leaks by the application. A connection that is not returned |
| back to the pool by the application within the specified period is |
| assumed to be potentially leaking, and a stack trace of the caller is |
| logged. A zero value disables leak detection. A nonzero value enables |
| leak tracing. |
| |
| |`connection-leak-reclaim` |`false` |If `true`, the pool will reclaim |
| a connection after `connection-leak-timeout-in-seconds` occurs. |
| |
| |`connection-creation-retry-attempts` |`0` |Specifies the number of |
| attempts to create a new connection. |
| |
| |`connection-creation-retry-interval-in-seconds` |`10` |Specifies |
| the time interval between attempts to create a connection when |
| `connection-creation-retry-attempts` is greater than `0`. |
| |
| |`lazy-connection-enlistment` |`false` |If `true`, a connection is not |
| enlisted in a transaction until it is used. If `false`, any connection |
| object available to a transaction is enlisted in the transaction. |
| |
| |`lazy-connection-association` |`false` |If `true`, a physical |
| connection is not associated with a logical connection until it is used. |
| If `false`, a physical connection is associated with a logical |
| connection even before it is used. |
| |
| |`associate-with-thread` |`false` a| |
| If `true`, allows connections to be saved as `ThreadLocal` in the |
| calling thread. Connections get reclaimed only when the calling thread |
| dies or when the calling thread is not in use and the pool has run out |
| of connections. If `false`, the thread must obtain a connection from the |
| pool each time the thread requires a connection. |
| |
| This attribute associates connections with a thread such that when the |
| same thread is in need of connections, it can reuse the connections |
| already associated with that thread. In this case, the overhead of |
| getting connections from the pool is avoided. However, when this value |
| is set to `true`, you should verify that the value of the |
| `max-pool-size` attribute is comparable to the `max-thread-pool-size` |
| attribute of the associated thread pool. If the `max-thread-pool-size` |
| value is much higher than the `max-pool-size` value, a lot of time is |
| spent associating connections with a new thread after dissociating them |
| from an older one. Use this attribute in cases where the thread pool |
| should reuse connections to avoid this overhead. |
| |
| | | | |
| |
| |`match-connections` |`true` |If `true`, enables connection matching. |
| You can set to `false` if connections are homogeneous. |
| |
| |`max-connection-usage-count` |`0` |Specifies the number of times a |
| connections is reused by the pool, after which it is closed. A zero |
| value disables this feature. |
| |
| |`ping` |`false` |(optional) Specifies whether to ping the pool during |
| pool creation or reconfiguration to identify and warn of any erroneous |
| attribute values. |
| |
| |`pooling` |`true` |(optional) If `false`, disables connection pooling. |
| |=== |
| |
| |
| [[GSDPG884]][[sthref60]] |
| |
| |
| [[properties-4]] |
| ==== Properties |
| |
| Most properties of the `connector-connection-pool` element are the names |
| of setter methods of the `managedconnectionfactory-class` element in the |
| `ra.xml` file. Properties of the `connector-connection-pool` element |
| override the `ManagedConnectionFactory` JavaBean configuration settings. |
| |
| All but the last four properties in the following table are |
| `connector-connection-pool` properties of `jmsra`, the resource adapter |
| used to communicate with the Open Message Queue software. For a complete |
| list of the available properties (called administered object attributes |
| in the Message Queue software), see the link:../openmq/mq-admin-guide.html#GMADG[Open Message Queue |
| Administration Guide]. |
| |
| Changes to `connector-connection-pool` properties require a server |
| restart. |
| |
| [[GSDPG885]][[sthref61]][[sthref62]] |
| |
| |
| Table C-37 `connector-connection-pool` Properties |
| |
| [width="100%",cols="26%,11%,63%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`AddressList` |none |Specifies a list of host/port combinations of the |
| Message Queue software. For JMS resources of the Type |
| `jakarta.jms.TopicConnectionFactory` or |
| `jakarta.jms.QueueConnectionFactory`. |
| |
| |`ClientId` |none a| |
| Specifies the JMS Client Identifier to be associated with a `Connection` |
| created using the `createTopicConnection` method of the |
| `TopicConnectionFactory` class. For JMS resources of the Type |
| `jakarta.jms.TopicConnectionFactory` . |
| |
| Durable subscription names are unique and only valid within the scope of |
| a client identifier. To create or reactivate a durable subscriber, the |
| connection must have a valid client identifier. The JMS specification |
| ensures that client identifiers are unique and that a given client |
| identifier is allowed to be used by only one active connection at a |
| time. |
| |
| |`UserName` |`guest` |Specifies the user name for connecting to the |
| Message Queue software. For JMS resources of the Type |
| `jakarta.jms.TopicConnectionFactory` or |
| `jakarta.jms.QueueConnectionFactory`. |
| |
| |`Password` |`guest` |Specifies the password for connecting to the |
| Message Queue software. For JMS resources of the Type |
| `jakarta.jms.TopicConnectionFactory` or |
| `jakarta.jms.QueueConnectionFactory`. |
| |
| |`ReconnectAttempts` |`6` |Specifies the number of attempts to connect |
| (or reconnect) for each address in the `imqAddressList` before the |
| client runtime moves on to try the next address in the list. A value of |
| `-1` indicates that the number of reconnect attempts is unlimited (the |
| client runtime attempts to connect to the first address until it |
| succeeds). |
| |
| |`ReconnectInterval` |`30000` |Specifies the interval between reconnect |
| attempts in milliseconds. This applies to attempts on each address in |
| the `imqAddressList` and on successive addresses in the list. If too |
| short, this time interval does not give a broker time to recover. If too |
| long, the reconnect might represent an unacceptable delay. |
| |
| |`ReconnectEnabled` |`false` |If `true`, specifies that the client |
| runtime attempts to reconnect to a message server (or the list of |
| addresses in `imqAddressList`) when a connection is lost. |
| |
| |`AddressListBehavior` |`priority` |Specifies whether connection |
| attempts are in the order of addresses in the `imqAddressList` attribute |
| (`priority`) or in a random order (`random`). If many clients are |
| attempting a connection using the same connection factory, use a random |
| order to prevent them from all being connected to the same address. |
| |
| |`AddressListIterations` |`-1` |Specifies the number of times the client |
| runtime iterates through the `imqAddressList` in an effort to establish |
| (or reestablish) a connection. A value of `-1` indicates that the number |
| of attempts is unlimited. |
| |=== |
| |
| |
| |
| [NOTE] |
| ==== |
| All JMS administered object resource properties that worked with version |
| 7 of the {productName} are supported for backward compatibility. |
| ==== |
| |
| |
| [[giyhv]][[GSDPG00125]][[connector-resource]] |
| |
| === `connector-resource` |
| |
| Defines the connection factory object of a specific connection |
| definition in a connector (resource adapter). |
| |
| [[GSDPG886]][[sthref63]] |
| |
| |
| [[superelements-40]] |
| ==== Superelements |
| |
| link:#giyiy[`resources`] (`glassfish-resources.xml`) |
| |
| [[GSDPG887]][[sthref64]] |
| |
| |
| [[subelements-38]] |
| ==== Subelements |
| |
| The following table describes subelements for the `connector-resource` |
| element. |
| |
| [[GSDPG888]][[sthref65]][[sthref66]] |
| |
| |
| Table C-38 `connector-resource` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaso[`description`] |
| |
| |
| |zero or one |Contains a text description of this element. |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property or a variable. |
| |=== |
| |
| |
| [[GSDPG889]][[sthref67]] |
| |
| |
| [[attributes-10]] |
| ==== Attributes |
| |
| The following table describes attributes for the `connector-resource` |
| element. |
| |
| [[GSDPG890]][[sthref68]][[sthref69]] |
| |
| |
| Table C-39 `connector-resource` Attributes |
| |
| [width="172%",cols="9%,46%,45%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`jndi-name` |none |Specifies the JNDI name for the resource. |
| |
| |`pool-name` |none |Specifies the `name` of the associated |
| link:#giygu[`connector-connection-pool`]. |
| |
| |`object-type` |`user` a| |
| (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. |
| |=== |
| |
| |
| [[beasd]][[GSDPG00126]][[consistency]] |
| |
| === `consistency` |
| |
| Specifies container behavior in guaranteeing transactional consistency |
| of the data in the bean. |
| |
| [[fvysj]][[GSDPG00421]][[superelements-41]] |
| |
| ==== Superelements |
| |
| link:#beasy[`entity-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvysl]][[GSDPG00422]][[subelements-39]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `consistency` element. |
| |
| [[GSDPG891]][[sthref70]][[fvysn]] |
| |
| |
| Table C-40 `consistency` Subelements |
| |
| [width="100%",cols="31%,21%,48%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavi[`none`] |
| |
| |
| |exactly one subelement is required |No consistency checking occurs. |
| |
| a| |
| link:#bearm[`check-modified-at-commit`] |
| |
| |
| |exactly one subelement is required |Checks concurrent modification of |
| fields in modified beans at commit time. |
| |
| a| |
| link:#beauh[`lock-when-loaded`] |
| |
| |
| |exactly one subelement is required |Obtains an exclusive lock when the |
| data is loaded. |
| |
| a| |
| link:#bearl[`check-all-at-commit`] |
| |
| |
| | + |This element is not implemented. Do not use. |
| |
| a| |
| link:#beaui[`lock-when-modified`] |
| |
| |
| | + |This element is not implemented. Do not use. |
| |
| a| |
| link:#bearn[`check-version-of-accessed-instances`] |
| |
| |
| |exactly one subelement is required |Checks the version column of the |
| modified beans. |
| |=== |
| |
| |
| [[bease]][[GSDPG00127]][[constraint-field]] |
| |
| === `constraint-field` |
| |
| Specifies a cacheability constraint for the given |
| link:#beayl[`url-pattern`] or link:#beaxo[`servlet-name`]. |
| |
| All `constraint-field` constraints must pass for a response to be |
| cached. If there are `value` constraints, at least one of them must |
| pass. |
| |
| [[fvysm]][[GSDPG00423]][[superelements-42]] |
| |
| ==== Superelements |
| |
| link:#bearh[`cache-mapping`] (`glassfish-web.xml`) |
| |
| [[fvyso]][[GSDPG00424]][[subelements-40]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `constraint-field` |
| element. |
| |
| [[GSDPG892]][[sthref71]][[fvysp]] |
| |
| |
| Table C-41 `constraint-field` Subelements |
| |
| [width="100%",cols="30%,13%,57%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beasf[`constraint-field-value`] |
| |
| |
| |zero or more |Contains a value to be matched to the input parameter |
| value. |
| |=== |
| |
| |
| [[fvysq]][[GSDPG00425]][[attributes-11]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `constraint-field` |
| element. |
| |
| [[GSDPG893]][[sthref72]][[fvysr]] |
| |
| |
| Table C-42 `constraint-field` Attributes |
| |
| [width="100%",cols="18%,21%,61%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`name` |none |Specifies the input parameter name. |
| |
| |`scope` |`request.parameter` |(optional) Specifies the scope from which |
| the input parameter is retrieved. Allowed values are |
| `context.attribute`, `request.header`, `request.parameter`, |
| `request.cookie`, `request.attribute`, and `session.attribute`. |
| |
| |`cache-on-match` |`true` |(optional) If `true`, caches the response if |
| matching succeeds. Overrides the same attribute in a |
| link:#beasf[`constraint-field-value`] subelement. |
| |
| |`cache-on-match-failure` |`false` |(optional) If `true`, caches the |
| response if matching fails. Overrides the same attribute in a |
| link:#beasf[`constraint-field-value`] subelement. |
| |=== |
| |
| |
| [[beasf]][[GSDPG00128]][[constraint-field-value]] |
| |
| === `constraint-field-value` |
| |
| Specifies a value to be matched to the input parameter value. The |
| matching is case sensitive. For example: |
| |
| [source,xml] |
| ---- |
| <value match-expr="in-range">1-60</value> |
| ---- |
| |
| [[fvyss]][[GSDPG00426]][[superelements-43]] |
| |
| ==== Superelements |
| |
| link:#bease[`constraint-field`] (`glassfish-web.xml`) |
| |
| [[fvyst]][[GSDPG00427]][[subelements-41]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[fvysu]][[GSDPG00428]][[attributes-12]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the |
| `constraint-field-value` element. |
| |
| [[GSDPG894]][[sthref73]][[fvysv]] |
| |
| |
| Table C-43 `constraint-field-value` Attributes |
| |
| [width="172%",cols="11%,46%,43%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`match-expr` |`equals` a| |
| (optional) Specifies the type of comparison performed with the value. |
| Allowed values are `equals`, `not-equals`, `greater`, `lesser`, and |
| `in-range`. |
| |
| If `match-expr` is `greater` or `lesser`, the value must be a number. If |
| `match-expr` is `in-range`, the value must be of the form n1`-`n2, where |
| n1 and n2 are numbers. |
| |
| |`cache-on-match` |`true` |(optional) If `true`, caches the response if |
| matching succeeds. |
| |
| |`cache-on-match-failure` |`false` |(optional) If `true`, caches the |
| response if matching fails. |
| |=== |
| |
| |
| [[beasg]][[GSDPG00129]][[context-root]] |
| |
| === `context-root` |
| |
| Contains the web context root for the application or web application |
| that was packaged as a WAR file. Overrides the corresponding element in |
| the `application.xml` or `web.xml` file. |
| |
| If the parent element is `java-web-start-access`, this element contains |
| the context root for the Java Web Start enabled application client |
| module. If none is specified, a default is generated; see |
| link:#gauax[`java-web-start-access`]. |
| |
| If you are setting up load balancing, web module context roots must be |
| unique within a server instance. See the link:ha-administration-guide.html#GSHAG[{productName} High Availability Administration Guide] for more |
| information about load balancing. |
| |
| [[fvysx]][[GSDPG00429]][[superelements-44]] |
| |
| ==== Superelements |
| |
| link:#beayr[`web`] (`glassfish-application.xml`), |
| link:#beayb[`glassfish-web-app`] (`glassfish-web.xml`), |
| link:#gauax[`java-web-start-access`] |
| (`glassfish-application-client.xml`) |
| |
| [[fvysw]][[GSDPG00430]][[subelements-42]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beash]][[GSDPG00130]][[cookie-properties]] |
| |
| === `cookie-properties` |
| |
| Specifies session cookie properties. |
| |
| |
| [NOTE] |
| ==== |
| If cookie settings are defined declaratively in the `web.xml` file, the |
| cookie properties defined here take precedence. If cookie settings are |
| defined programmatically using `javax.servlet.SessionCookieConfig` |
| methods, those cookie settings take precedence over the cookie |
| properties defined here. |
| ==== |
| |
| |
| [[fvysy]][[GSDPG00431]][[superelements-45]] |
| |
| ==== Superelements |
| |
| link:#beaxp[`session-config`] (`glassfish-web.xml`) |
| |
| [[fvysz]][[GSDPG00432]][[subelements-43]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `cookie-properties` |
| element. |
| |
| [[GSDPG895]][[sthref74]][[fvytb]] |
| |
| |
| Table C-44 `cookie-properties` Subelements |
| |
| [width="100%",cols="36%,14%,50%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvyta]][[GSDPG00433]][[properties-5]] |
| |
| ==== Properties |
| |
| The following table describes properties for the `cookie-properties` |
| element. |
| |
| [[GSDPG896]][[sthref75]][[fvyte]] |
| |
| |
| Table C-45 `cookie-properties` Properties |
| |
| [width="100%",cols="24%,13%,63%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`cookieName` |none |Specifies the cookie name. |
| |
| |`cookiePath` |Context path at which the web module is installed. |
| |Specifies the pathname that is set when the cookie is created. The |
| browser sends the cookie if the pathname for the request contains this |
| pathname. If set to `/` (slash), the browser sends cookies to all URLs |
| served by {productName}. You can set the path to a narrower mapping |
| to limit the request URLs to which the browser sends cookies. |
| |
| |`cookieMaxAgeSeconds` |none |Specifies the expiration time (in seconds) |
| after which the browser expires the cookie. If this is unset, the cookie |
| doesn't expire. |
| |
| |`cookieDomain` |(unset) |Specifies the domain for which the cookie is |
| valid. |
| |
| |`cookieComment` |none |Specifies the comment that identifies the |
| session tracking cookie in the cookie file. |
| |
| |`cookieSecure` |`dynamic` a| |
| Sets the `Secure` attribute of any `JSESSIONID` cookies associated with |
| the web application. Allowed values are as follows: |
| |
| * `true` — Sets `Secure` to `true`. |
| * `false` — Sets `Secure` to `false`. |
| * `dynamic` — The `JSESSIONID` cookie inherits the `Secure` setting of |
| the request that initiated the session. |
| |
| To set the `Secure` attribute of a `JSESSIONIDSSO` cookie, use the |
| `ssoCookieSecure` `virtual-server` property. For details, see |
| link:reference-manual/create-virtual-server.html#GSRFM00062[`create-virtual-server`(1)]. |
| |
| |`cookieHttpOnly` |none |Specifies that the cookie is marked HTTP only. |
| Allowed values are `true` or `false`. |
| |=== |
| |
| |
| [[beasi]][[GSDPG00131]][[create-tables-at-deploy]] |
| |
| === `create-tables-at-deploy` |
| |
| Specifies whether database tables are created for beans that are |
| automatically mapped by the EJB container. If `true`, creates tables in |
| the database. If `false` (the default if this element is not present), |
| does not create tables. |
| |
| This element can be overridden during deployment. See |
| "link:application-development-guide/container_managed-persistence.html#GSDVG00438[Generation Options for CMP]" in {productName} Application Development Guide. |
| |
| [[fvytc]][[GSDPG00434]][[superelements-46]] |
| |
| ==== Superelements |
| |
| link:#bearv[`cmp-resource`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvytd]][[GSDPG00435]][[subelements-44]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[giyhr]][[GSDPG00132]][[custom-resource]] |
| |
| === `custom-resource` |
| |
| Defines a custom resource, which specifies a custom server-wide resource |
| object factory. Such object factories implement the |
| javax.naming.spi.ObjectFactory interface. |
| |
| [[GSDPG897]][[sthref76]] |
| |
| |
| [[superelements-47]] |
| ==== Superelements |
| |
| link:#giyiy[`resources`] (`glassfish-resources.xml`) |
| |
| [[GSDPG898]][[sthref77]] |
| |
| |
| [[subelements-45]] |
| ==== Subelements |
| |
| The following table describes subelements for the `custom-resource` |
| element. |
| |
| [[GSDPG899]][[sthref78]][[sthref79]] |
| |
| |
| Table C-46 `custom-resource` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaso[`description`] |
| |
| |
| |zero or one |Contains a text description of this element. |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property or a variable. |
| |=== |
| |
| |
| [[GSDPG900]][[sthref80]] |
| |
| |
| [[attributes-13]] |
| ==== Attributes |
| |
| The following table describes attributes for the `custom-resource` |
| element. |
| |
| [[GSDPG901]][[sthref81]][[sthref82]] |
| |
| |
| Table C-47 `custom-resource` Attributes |
| |
| [width="172%",cols="11%,46%,43%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`jndi-name` |none |Specifies the JNDI 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 |
| user-written factory class, which implements |
| javax.naming.spi.ObjectFactory. |
| |
| |`object-type` |`user` a| |
| (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. |
| |=== |
| |
| |
| [[beask]][[GSDPG00133]][[database-vendor-name]] |
| |
| === `database-vendor-name` |
| |
| Specifies the name of the database vendor for which tables can be |
| created. Allowed values are `javadb`, `db2`, `mssql`, `mysql`, `oracle`, |
| `postgresql`, `pointbase`, `derby` (also for CloudScape), and `sybase`, |
| case-insensitive. |
| |
| If no value is specified, a connection is made to the resource specified |
| by the link:#beatw[`jndi-name`] subelement of the |
| link:#bearv[`cmp-resource`] element, and the database vendor name is |
| read. If the connection cannot be established, or if the value is not |
| recognized, SQL-92 compliance is presumed. |
| |
| This element can be overridden during deployment. See |
| "link:application-development-guide/container_managed-persistence.html#GSDVG00438[Generation Options for CMP]" in {productName} Application Development Guide. |
| |
| [[fvytf]][[GSDPG00436]][[superelements-48]] |
| |
| ==== Superelements |
| |
| link:#bearv[`cmp-resource`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyti]][[GSDPG00437]][[subelements-46]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[gaubj]][[GSDPG00134]][[debugging-enabled]] |
| |
| === `debugging-enabled` |
| |
| Specifies whether the debugging servlet is enabled for this web service |
| endpoint. Allowed values are `true` (the default) and `false`. |
| |
| [[gaubf]][[GSDPG00438]][[superelements-49]] |
| |
| ==== Superelements |
| |
| link:#beayv[`webservice-endpoint`] (`glassfish-web.xml`, |
| `glassfish-ejb-jar.xml`) |
| |
| [[gaube]][[GSDPG00439]][[subelements-47]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasl]][[GSDPG00135]][[default]] |
| |
| === `default` |
| |
| Specifies that a field belongs to the default hierarchical fetch group, |
| and enables prefetching for a CMR field. To disable prefetching for |
| specific query methods, use a link:#beavu[`prefetch-disabled`] element |
| in the `glassfish-ejb-jar.xml` file. |
| |
| [[fvytg]][[GSDPG00440]][[superelements-50]] |
| |
| ==== Superelements |
| |
| link:#beatc[`fetched-with`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyth]][[GSDPG00441]][[subelements-48]] |
| |
| ==== Subelements |
| |
| none - element is present or absent |
| |
| [[beasm]][[GSDPG00136]][[default-helper]] |
| |
| === `default-helper` |
| |
| Passes property values to the built-in `default` |
| link:#beare[`cache-helper`] class. |
| |
| [[fvytj]][[GSDPG00442]][[superelements-51]] |
| |
| ==== Superelements |
| |
| link:#beard[`cache`] (`glassfish-web.xml`) |
| |
| [[fvytk]][[GSDPG00443]][[subelements-49]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `default-helper` |
| element. |
| |
| [[GSDPG902]][[sthref83]][[fvytm]] |
| |
| |
| Table C-48 `default-helper` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |=== |
| |
| |
| [[fvytp]][[GSDPG00444]][[properties-6]] |
| |
| ==== Properties |
| |
| The following table describes properties for the `default-helper` |
| element. |
| |
| [[GSDPG903]][[sthref84]][[fvyto]] |
| |
| |
| Table C-49 `default-helper` Properties |
| |
| [width="100%",cols="30%,21%,49%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`cacheKeyGeneratorAttrName` |Uses the built-in `default` |
| link:#beare[`cache-helper`] key generation, which concatenates the |
| servlet path with link:#beatz[`key-field`] values, if any. |The caching |
| engine looks in the `ServletContext` for an attribute with a name equal |
| to the value specified for this property to determine whether a |
| customized CacheKeyGenerator implementation is used. An application can |
| provide a customized key generator rather than using the `default` |
| helper. See "link:application-development-guide/webapps.html#GSDVG00254[The CacheKeyGenerator Interface]" in |
| {productName} Application Development Guide. |
| |=== |
| |
| |
| [[beasn]][[GSDPG00137]][[default-resource-principal]] |
| |
| === `default-resource-principal` |
| |
| Specifies the default principal (user) for the resource. |
| |
| If this element is used in conjunction with a JMS Connection Factory |
| resource, the `name` and `password` subelements must be valid entries in |
| the Open Message Queue broker user repository. See |
| "link:../openmq/mq-admin-guide/security-services.html#GMADG00040[Configuring and Managing Security Services]" in Open |
| Message Queue Administration Guide for details. |
| |
| [[fvytl]][[GSDPG00445]][[superelements-52]] |
| |
| ==== Superelements |
| |
| link:#beaww[`resource-ref`] (`glassfish-web.xml`, |
| `glassfish-ejb-jar.xml`, `glassfish-application-client.xml`); |
| link:#bearv[`cmp-resource`], link:#beaur[`mdb-connection-factory`] |
| (`glassfish-ejb-jar.xml`) |
| |
| [[fvytn]][[GSDPG00446]][[subelements-50]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `default-resource-principal` element. |
| |
| [[GSDPG904]][[sthref85]][[fvytr]] |
| |
| |
| Table C-50 `default-resource-principal` Subelements |
| |
| [width="100%",cols="11%,10%,79%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavf[`name`] |
| |
| |
| |only one |Specifies the default resource principal name used to sign |
| on to a resource manager. |
| |
| a| |
| link:#beavp[`password`] |
| |
| |
| |only one |Specifies password of the default resource principal. |
| |=== |
| |
| |
| [[beaso]][[GSDPG00138]][[description]] |
| |
| === `description` |
| |
| Specifies a text description of the containing element. |
| |
| [[fvytq]][[GSDPG00447]][[superelements-53]] |
| |
| ==== Superelements |
| |
| link:#beavx[`property` (with attributes)], link:#gikqk[`valve`] |
| (`glassfish-web.xml`); link:#beaqs[`activation-config`], |
| link:#beauz[`method`] (`glassfish-ejb-jar.xml`); |
| link:#beaye[`target-server`] (`sun-acc.xml`); |
| link:#giyhw[`admin-object-resource`], |
| link:#giygu[`connector-connection-pool`], |
| link:#giyhv[`connector-resource`], link:#giyhr[`custom-resource`], |
| link:#giyin[`external-jndi-resource`], |
| link:#giyil[`jdbc-connection-pool`], link:#giyhm[`jdbc-resource`], |
| link:#giyik[`mail-resource`], link:#beavx[`property` (with attributes)], |
| link:#giyit[`resource-adapter-config`] (`glassfish-resources.xml`) |
| |
| [[fvyts]][[GSDPG00448]][[subelements-51]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[gkhtw]][[GSDPG00139]][[disable-nonportable-jndi-names]] |
| |
| === `disable-nonportable-jndi-names` |
| |
| Because the EJB 3.1 specification defines portable EJB JNDI names, there |
| is less need for {productName} specific JNDI names. By default, |
| {productName} specific default JNDI names are applied automatically |
| for backward compatibility. To disable {productName} specific JNDI |
| names for an EJB module, set the value of this element to `true`. The |
| default is `false`. |
| |
| [[gkhum]][[GSDPG00449]][[superelements-54]] |
| |
| ==== Superelements |
| |
| link:#beaya[`glassfish-ejb-jar`] (`glassfish-ejb-jar.xml`) |
| |
| [[gkhug]][[GSDPG00450]][[subelements-52]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasp]][[GSDPG00140]][[dispatcher]] |
| |
| === `dispatcher` |
| |
| Specifies a comma-separated list of `RequestDispatcher` methods for |
| which caching is enabled on the target resource. Valid values are |
| `REQUEST`, `FORWARD`, `INCLUDE`, and `ERROR` . If this element is not |
| specified, the default is `REQUEST`. See SRV.6.2.5 of the Servlet 2.4 |
| specification for more information. |
| |
| [[fvytt]][[GSDPG00451]][[superelements-55]] |
| |
| ==== Superelements |
| |
| link:#bearh[`cache-mapping`] (`glassfish-web.xml`) |
| |
| [[fvytv]][[GSDPG00452]][[subelements-53]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasq]][[GSDPG00141]][[drop-tables-at-undeploy]] |
| |
| === `drop-tables-at-undeploy` |
| |
| Specifies whether database tables that were automatically created when |
| the bean(s) were last deployed are dropped when the bean(s) are |
| undeployed. If `true`, drops tables from the database. If `false` (the |
| default if this element is not present), does not drop tables. |
| |
| This element can be overridden during deployment. See |
| "link:application-development-guide/container_managed-persistence.html#GSDVG00438[Generation Options for CMP]" in {productName} Application Development Guide. |
| |
| [[fvytu]][[GSDPG00453]][[superelements-56]] |
| |
| ==== Superelements |
| |
| link:#bearv[`cmp-resource`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvytx]][[GSDPG00454]][[subelements-54]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beass]][[GSDPG00142]][[ejb]] |
| |
| `ejb` |
| ~~~~~ |
| |
| Defines runtime properties for a single enterprise bean within the |
| application. The subelements listed below apply to particular enterprise |
| beans as follows: |
| |
| * All types of beans: `ejb-name`, `ejb-ref`, `resource-ref`, |
| `resource-env-ref`, `ior-security-config`, `gen-classes`, `jndi-name`, |
| `use-thread-pool-id`, `message-destination-ref`, `pass-by-reference`, |
| `service-ref` |
| * Stateless session beans: `bean-pool`, `webservice-endpoint` |
| * Stateful session beans: `bean-cache`, `webservice-endpoint`, |
| `checkpoint-at-end-of-method` |
| * Entity beans: `commit-option`, `bean-cache`, `bean-pool`, `cmp`, |
| `is-read-only-bean`, `refresh-period-in-seconds`, |
| `flush-at-end-of-method` |
| * Message-driven beans: `mdb-resource-adapter`, |
| `mdb-connection-factory`, `jms-durable-subscription-name`, |
| `jms-max-messages-load`, `bean-pool` |
| |
| [[fvyty]][[GSDPG00455]][[superelements-57]] |
| |
| ==== Superelements |
| |
| link:#beasx[`enterprise-beans`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvytw]][[GSDPG00456]][[subelements-55]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `ejb` element. |
| |
| [[GSDPG905]][[sthref86]][[fvyuc]] |
| |
| |
| Table C-51 `ejb` Subelements |
| |
| [width="100%",cols="35%,12%,53%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beast[`ejb-name`] |
| |
| |
| |only one |Matches the `ejb-name` in the corresponding `ejb-jar.xml` |
| file. |
| |
| a| |
| link:#beatw[`jndi-name`] |
| |
| |
| |zero or more |Specifies the absolute `jndi-name`. |
| |
| a| |
| link:#beasu[`ejb-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `ejb-ref` element in |
| the corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaww[`resource-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beawu[`resource-env-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-env-ref` in |
| the corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaxk[`service-ref`] |
| |
| |
| |zero or more |Specifies runtime settings for a web service reference. |
| |
| a| |
| link:#gauao[`message-destination-ref`] |
| |
| |
| |zero or more |Specifies the name of a physical message destination. |
| |
| a| |
| link:#beavo[`pass-by-reference`] |
| |
| |
| |zero or one |Specifies the passing method used by an enterprise bean |
| calling a remote interface method in another bean that is colocated |
| within the same process. |
| |
| a| |
| link:#beart[`cmp`] |
| |
| |
| |zero or one |Specifies runtime information for a container-managed |
| persistence (CMP) entity bean for EJB 1.1 and EJB 2.1 beans. |
| |
| a| |
| link:#beavv[`principal`] |
| |
| |
| |zero or one |Specifies the principal (user) name in an enterprise bean |
| that has the `run-as` role specified. |
| |
| a| |
| link:#beaur[`mdb-connection-factory`] |
| |
| |
| |zero or one |Specifies the connection factory associated with a |
| message-driven bean. |
| |
| a| |
| link:#beatu[`jms-durable-subscription-name`] |
| |
| |
| |zero or one |Specifies the durable subscription associated with a |
| message-driven bean. |
| |
| a| |
| link:#beatv[`jms-max-messages-load`] |
| |
| |
| |zero or one |Specifies the maximum number of messages to load into a |
| Java Message Service session at one time for a message-driven bean to |
| serve. The default is 1. |
| |
| a| |
| link:#beato[`ior-security-config`] |
| |
| |
| |zero or one |Specifies the security information for the IOR. |
| |
| a| |
| link:#beatr[`is-read-only-bean`] |
| |
| |
| |zero or one |Specifies that this entity bean is read-only. |
| |
| a| |
| link:#beawk[`refresh-period-in-seconds`] |
| |
| |
| |zero or one |Specifies the rate at which a read-only-bean must be |
| refreshed from the data source. |
| |
| a| |
| link:#beasb[`commit-option`] |
| |
| |
| |zero or one |Has valid values of B or C. Default value is B. |
| |
| a| |
| link:#beary[`cmt-timeout-in-seconds`] |
| |
| |
| |zero or one |Overrides the Transaction Timeout setting of the |
| Transaction Service for an individual bean. |
| |
| a| |
| link:#beaym[`use-thread-pool-id`] |
| |
| |
| |zero or one |Specifies the thread pool from which threads are selected |
| for remote invocations of this bean. |
| |
| a| |
| link:#beath[`gen-classes`] |
| |
| |
| |zero or one |Specifies all the generated class names for a bean. |
| |
| a| |
| link:#bearb[`bean-pool`] |
| |
| |
| |zero or one |Specifies the bean pool properties. Used for stateless |
| session beans, entity beans, and message-driven beans. |
| |
| a| |
| link:#beara[`bean-cache`] |
| |
| |
| |zero or one |Specifies the bean cache properties. Used only for |
| stateful session beans and entity beans. |
| |
| a| |
| link:#beaus[`mdb-resource-adapter`] |
| |
| |
| |zero or one |Specifies runtime configuration information for a |
| message-driven bean. |
| |
| a| |
| link:#beayv[`webservice-endpoint`] |
| |
| |
| |zero or more |Specifies information about a web service endpoint. |
| |
| a| |
| link:#beatf[`flush-at-end-of-method`] |
| |
| |
| |zero or one |Specifies the methods that force a database flush after |
| execution. Used for entity beans. |
| |
| a| |
| link:#bearp[`checkpointed-methods`] |
| |
| |
| |zero or one |Deprecated. Supported for backward compatibility. Use |
| link:#bearo[`checkpoint-at-end-of-method`] instead. |
| |
| a| |
| link:#bearo[`checkpoint-at-end-of-method`] |
| |
| |
| |zero or one |Specifies that the stateful session bean state is |
| checkpointed, or persisted, after the specified methods are executed. |
| The `availability-enabled` attribute must be set to `true`. |
| |
| a| |
| link:#gkkia[`per-request-load-balancing`] |
| |
| |
| |zero or one |Specifies the per-request load balancing behavior of EJB |
| 2.x and 3.x remote client invocations on a stateless session bean. |
| |=== |
| |
| |
| [[fvyuf]][[GSDPG00457]][[attributes-14]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `ejb` element. |
| |
| [[GSDPG906]][[sthref87]][[fvyud]] |
| |
| |
| Table C-52 `ejb` Attributes |
| |
| [width="181%",cols="16%,49%,35%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`availability-enabled` |`false` |(optional) If set to `true`, and if |
| availability is enabled in the EJB container, high-availability features |
| apply to this bean if it is a stateful session bean. |
| |=== |
| |
| |
| [[fvytz]][[GSDPG00458]][[example-3]] |
| |
| ==== Example |
| |
| [source,xml] |
| ---- |
| <ejb> |
| <ejb-name>CustomerEJB</ejb-name> |
| <jndi-name>customer</jndi-name> |
| <resource-ref> |
| <res-ref-name>jdbc/SimpleBank</res-ref-name> |
| <jndi-name>jdbc/__default</jndi-name> |
| </resource-ref> |
| <is-read-only-bean>false</is-read-only-bean> |
| <commit-option>B</commit-option> |
| <bean-pool> |
| <steady-pool-size>10</steady-pool-size> |
| <resize-quantity>10</resize-quantity> |
| <max-pool-size>100</max-pool-size> |
| <pool-idle-timeout-in-seconds>600</pool-idle-timeout-in-seconds> |
| </bean-pool> |
| <bean-cache> |
| <max-cache-size>100</max-cache-size> |
| <resize-quantity>10</resize-quantity> |
| <removal-timeout-in-seconds>3600</removal-timeout-in-seconds> |
| <victim-selection-policy>LRU</victim-selection-policy> |
| </bean-cache> |
| </ejb> |
| ---- |
| |
| [[beast]][[GSDPG00143]][[ejb-name]] |
| |
| === `ejb-name` |
| |
| In the `glassfish-ejb-jar.xml` file, matches the `ejb-name` in the |
| corresponding `ejb-jar.xml` file. The name must be unique among the |
| names of the enterprise beans in the same EJB JAR file. |
| |
| There is no architected relationship between the `ejb-name` in the |
| deployment descriptor and the JNDI name that the deployer assigns to the |
| EJB component's home. |
| |
| In the `sun-cmp-mappings.xml` file, specifies the `ejb-name` of the |
| entity bean in the `ejb-jar.xml` file to which the container-managed |
| persistence (CMP) bean corresponds. |
| |
| [[fvyug]][[GSDPG00459]][[superelements-58]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`], link:#beauz[`method`] (`glassfish-ejb-jar.xml`); |
| link:#beasy[`entity-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyue]][[GSDPG00460]][[subelements-56]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasu]][[GSDPG00144]][[ejb-ref]] |
| |
| === `ejb-ref` |
| |
| Maps the `ejb-ref-name` in the corresponding Jakarta EE deployment |
| descriptor file `ejb-ref` entry to the absolute `jndi-name` of a |
| resource. |
| |
| The `ejb-ref` element is used for the declaration of a reference to an |
| EJB's home. Applies to session beans or entity beans. |
| |
| [[fvyub]][[GSDPG00461]][[superelements-59]] |
| |
| ==== Superelements |
| |
| link:#beayb[`glassfish-web-app`] (`glassfish-web.xml`), |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`), |
| link:#beaxx[`glassfish-application-client`] |
| (`glassfish-application-client.xml`) |
| |
| [[fvyua]][[GSDPG00462]][[subelements-57]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `ejb-ref` element. |
| |
| [[GSDPG907]][[sthref88]][[fvyui]] |
| |
| |
| Table C-53 `ejb-ref` Subelements |
| |
| [width="100%",cols="26%,11%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beasv[`ejb-ref-name`] |
| |
| |
| |only one |Specifies the `ejb-ref-name` in the corresponding Jakarta EE |
| deployment descriptor file `ejb-ref` entry. |
| |
| a| |
| link:#beatw[`jndi-name`] |
| |
| |
| |only one |Specifies the absolute `jndi-name` of a resource. |
| |=== |
| |
| |
| [[beasv]][[GSDPG00145]][[ejb-ref-name]] |
| |
| === `ejb-ref-name` |
| |
| Specifies the `ejb-ref-name` in the corresponding Jakarta EE deployment |
| descriptor file `ejb-ref` entry. |
| |
| [[fvyuh]][[GSDPG00463]][[superelements-60]] |
| |
| ==== Superelements |
| |
| link:#beasu[`ejb-ref`] (`glassfish-web.xml`, `glassfish-ejb-jar.xml`, |
| `glassfish-application-client.xml`) |
| |
| [[fvyuj]][[GSDPG00464]][[subelements-58]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[gaubh]][[GSDPG00146]][[eligible]] |
| |
| === `eligible` |
| |
| Specifies whether the application client module is eligible to be Java |
| Web Start enabled. Allowed values are `true` (the default) and `false`. |
| |
| [[gaubg]][[GSDPG00465]][[superelements-61]] |
| |
| ==== Superelements |
| |
| link:#gauax[`java-web-start-access`] |
| (`glassfish-application-client.xml`) |
| |
| [[gauaz]][[GSDPG00466]][[subelements-59]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beasw]][[GSDPG00147]][[endpoint-address-uri]] |
| |
| === `endpoint-address-uri` |
| |
| Specifies the relative path combined with the web server root to form |
| the fully qualified endpoint address for a web service endpoint. This is |
| a required element for EJB endpoints and an optional element for servlet |
| endpoints. |
| |
| For servlet endpoints, this value is relative to the web application |
| context root. For EJB endpoints, the URI is relative to root of the web |
| server (the first portion of the URI is a context root). The context |
| root portion must not conflict with the context root of any web |
| application deployed to the same web server. |
| |
| In all cases, this value must be a fixed pattern (no "`*`' allowed). |
| |
| If the web service endpoint is a servlet that implements only a single |
| endpoint and has only one `url-pattern`, it is not necessary to set this |
| value, because the web container derives it from the `web.xml` file. |
| |
| [[fvyul]][[GSDPG00467]][[superelements-62]] |
| |
| ==== Superelements |
| |
| link:#beayv[`webservice-endpoint`] (`glassfish-web.xml`, |
| `glassfish-ejb-jar.xml`) |
| |
| [[fvyum]][[GSDPG00468]][[subelements-60]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[fvyuk]][[GSDPG00469]][[example-4]] |
| |
| ==== Example |
| |
| If the web server is listening at `http://localhost:8080`, the following |
| `endpoint-address-uri`: |
| |
| [source,xml] |
| ---- |
| <endpoint-address-uri>StockQuoteService/StockQuotePort</endpoint-address-uri> |
| ---- |
| |
| results in the following target endpoint address: |
| |
| [source] |
| ---- |
| http://localhost:8080/StockQuoteService/StockQuotePort |
| ---- |
| |
| [[beasx]][[GSDPG00148]][[enterprise-beans]] |
| |
| === `enterprise-beans` |
| |
| Specifies all the runtime properties for an EJB JAR file in the |
| application. |
| |
| [[fvyun]][[GSDPG00470]][[superelements-63]] |
| |
| ==== Superelements |
| |
| link:#beaya[`glassfish-ejb-jar`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyuo]][[GSDPG00471]][[subelements-61]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `enterprise-beans` |
| element. |
| |
| [[GSDPG908]][[sthref89]][[fvyut]] |
| |
| |
| Table C-54 `enterprise-beans` Subelements |
| |
| [width="100%",cols="27%,12%,61%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavf[`name`] |
| |
| |
| |zero or one |Specifies the name string. |
| |
| a| |
| link:#beayk[`unique-id`] |
| |
| |
| |zero or one |Specifies a unique system identifier. This data is |
| automatically generated and updated at deployment/redeployment. Do not |
| specify or edit this value. |
| |
| a| |
| link:#beass[`ejb`] |
| |
| |
| |zero or more |Defines runtime properties for a single enterprise bean |
| within the application. |
| |
| a| |
| link:#beavq[`pm-descriptors`] |
| |
| |
| |zero or one |Deprecated. |
| |
| a| |
| link:#bearv[`cmp-resource`] |
| |
| |
| |zero or one |Specifies the database to be used for storing |
| container-managed persistence (CMP) beans in an EJB JAR file. |
| |
| a| |
| link:#beauu[`message-destination`] |
| |
| |
| |zero or more |Specifies the name of a logical message destination. |
| |
| a| |
| link:#beayt[`webservice-description`] |
| |
| |
| |zero or more |Specifies a name and optional publish location for a web |
| service. |
| |
| a| |
| link:#beavy[`property` (with subelements)] |
| |
| |
| |zero or more |Specifies a property or a variable. |
| |=== |
| |
| |
| [[fvyux]][[GSDPG00472]][[example-5]] |
| |
| ==== Example |
| |
| [source,xml] |
| ---- |
| <enterprise-beans> |
| <ejb> |
| <ejb-name>CustomerEJB</ejb-name> |
| <jndi-name>customer</jndi-name> |
| <resource-ref> |
| <res-ref-name>jdbc/SimpleBank</res-ref-name> |
| <jndi-name>jdbc/__default</jndi-name> |
| </resource-ref> |
| <is-read-only-bean>false</is-read-only-bean> |
| <commit-option>B</commit-option> |
| <bean-pool> |
| <steady-pool-size>10</steady-pool-size> |
| <resize-quantity>10</resize-quantity> |
| <max-pool-size>100</max-pool-size> |
| <pool-idle-timeout-in-seconds>600</pool-idle-timeout-in-seconds> |
| </bean-pool> |
| <bean-cache> |
| <max-cache-size>100</max-cache-size> |
| <resize-quantity>10</resize-quantity> |
| <removal-timeout-in-seconds>3600</removal-timeout-in-seconds> |
| <victim-selection-policy>LRU</victim-selection-policy> |
| </bean-cache> |
| </ejb> |
| </enterprise-beans> |
| ---- |
| |
| [[beasy]][[GSDPG00149]][[entity-mapping]] |
| |
| === `entity-mapping` |
| |
| Specifies the mapping a bean to database columns. |
| |
| [[fvyus]][[GSDPG00473]][[superelements-64]] |
| |
| ==== Superelements |
| |
| link:#beaxy[`sun-cmp-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyur]][[GSDPG00474]][[subelements-62]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `entity-mapping` |
| element. |
| |
| [[GSDPG909]][[sthref90]][[fvyuz]] |
| |
| |
| Table C-55 `entity-mapping` Subelements |
| |
| [width="100%",cols="21%,12%,67%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beast[`ejb-name`] |
| |
| |
| |only one |Specifies the name of the entity bean in the `ejb-jar.xml` |
| file to which the CMP bean corresponds. |
| |
| a| |
| link:#beayd[`table-name`] |
| |
| |
| |only one |Specifies the name of a database table. The table must be |
| present in the database schema file. |
| |
| a| |
| link:#bearu[`cmp-field-mapping`] |
| |
| |
| |one or more |Associates a field with one or more columns to which it |
| maps. |
| |
| a| |
| link:#bearw[`cmr-field-mapping`] |
| |
| |
| |zero or more |A container-managed relationship field has a name and |
| one or more column pairs that define the relationship. |
| |
| a| |
| link:#beaxe[`secondary-table`] |
| |
| |
| |zero or more |Describes the relationship between a bean's primary and |
| secondary table. |
| |
| a| |
| link:#beasd[`consistency`] |
| |
| |
| |zero or one |Specifies container behavior in guaranteeing |
| transactional consistency of the data in the bean. |
| |=== |
| |
| |
| [[beasz]][[GSDPG00150]][[establish-trust-in-client]] |
| |
| === `establish-trust-in-client` |
| |
| Specifies if the target is capable of authenticating a client. The |
| values are `NONE`, `SUPPORTED`, or `REQUIRED`. |
| |
| [[fvyuq]][[GSDPG00475]][[superelements-65]] |
| |
| ==== Superelements |
| |
| link:#beayh[`transport-config`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyuy]][[GSDPG00476]][[subelements-63]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beata]][[GSDPG00151]][[establish-trust-in-target]] |
| |
| === `establish-trust-in-target` |
| |
| Specifies if the target is capable of authenticating to a client. The |
| values are `NONE`, `SUPPORTED`, or `REQUIRED`. |
| |
| [[fvyuu]][[GSDPG00477]][[superelements-66]] |
| |
| ==== Superelements |
| |
| link:#beayh[`transport-config`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyuv]][[GSDPG00478]][[subelements-64]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[giyin]][[GSDPG00152]][[external-jndi-resource]] |
| |
| === `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. |
| |
| [[GSDPG910]][[sthref91]] |
| |
| |
| [[superelements-67]] |
| ==== Superelements |
| |
| link:#giyiy[`resources`] (`glassfish-resources.xml`) |
| |
| [[GSDPG911]][[sthref92]] |
| |
| |
| [[subelements-65]] |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `external-jndi-resource` element. |
| |
| [[GSDPG912]][[sthref93]][[sthref94]] |
| |
| |
| Table C-56 `external-jndi-resource` Subelements |
| |
| [width="100%",cols="25%,12%,63%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaso[`description`] |
| |
| |
| |zero or one |Contains a text description of this element. |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property or a variable. |
| |=== |
| |
| |
| [[GSDPG913]][[sthref95]] |
| |
| |
| [[attributes-15]] |
| ==== Attributes |
| |
| The following table describes attributes for the |
| `external-jndi-resource` element. |
| |
| [[GSDPG914]][[sthref96]][[sthref97]] |
| |
| |
| Table C-57 `external-jndi-resource` Attributes |
| |
| [width="172%",cols="13%,46%,41%",options="header",] |
| |=== |
| |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 a| |
| Specifies the fully qualified name of the factory class, which |
| implements javax.naming.spi.InitialContextFactory . |
| |
| For more information about JNDI, see the link:application-development-guide.html#GSDVG[{productName} Application Development Guide]. |
| |
| |`object-type` |`user` a| |
| (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. |
| |=== |
| |
| |
| [[beatc]][[GSDPG00153]][[fetched-with]] |
| |
| === `fetched-with` |
| |
| Specifies the fetch group configuration for fields and relationships. |
| The `fetched-with` element has different allowed and default subelements |
| based on its parent element and the data types of the fields. |
| |
| * If there is no `fetched-with` subelement of a |
| link:#bearu[`cmp-field-mapping`], and the data type is not BLOB, CLOB, |
| VARBINARY, LONGVARBINARY, or OTHER, `fetched-with` can have any valid |
| subelement. The default subelement is as follows: |
| + |
| [source,xml] |
| ---- |
| <fetched-with><default/></fetched-with> |
| ---- |
| * If there is no `fetched-with` subelement of a |
| link:#bearu[`cmp-field-mapping`], and the data type is BLOB, CLOB, |
| VARBINARY, LONGVARBINARY, or OTHER, `fetched-with` can have any valid |
| subelement except `<default/>`. The default subelement is as follows: |
| + |
| [source,xml] |
| ---- |
| <fetched-with><none/></fetched-with> |
| ---- |
| * If there is no `fetched-with` subelement of a |
| link:#bearw[`cmr-field-mapping`], `fetched-with` can have any valid |
| subelement. The default subelement is as follows: |
| + |
| [source,xml] |
| ---- |
| <fetched-with><none/></fetched-with> |
| ---- |
| |
| Managed fields are multiple CMP or CMR fields that are mapped to the |
| same column. A managed field can have any `fetched-with` subelement |
| except `<default/>`. For additional information, see |
| "link:application-development-guide/container_managed-persistence.html#GSDVG00306[Managed Fields]" in {productName} Application Development Guide. |
| |
| [[fvyuw]][[GSDPG00479]][[superelements-68]] |
| |
| ==== Superelements |
| |
| link:#bearu[`cmp-field-mapping`], link:#bearw[`cmr-field-mapping`] |
| (`sun-cmp-mappings.xml`) |
| |
| [[fvyup]][[GSDPG00480]][[subelements-66]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `fetched-with` |
| element. |
| |
| [[GSDPG915]][[sthref98]][[fvzcz]] |
| |
| |
| Table C-58 `fetched-with` Subelements |
| |
| [width="100%",cols="14%,21%,65%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beasl[`default`] |
| |
| |
| |exactly one subelement is required |Specifies that a CMP field belongs |
| to the default hierarchical fetch group, which means it is fetched any |
| time the bean is loaded from a database. Enables prefetching of a CMR |
| field. |
| |
| a| |
| link:#beaub[`level`] |
| |
| |
| |exactly one subelement is required |Specifies the level number of a |
| hierarchical fetch group. |
| |
| a| |
| link:#beavg[`named-group`] |
| |
| |
| |exactly one subelement is required |Specifies the name of an |
| independent fetch group. |
| |
| a| |
| link:#beavi[`none`] |
| |
| |
| |exactly one subelement is required |Specifies that this field or |
| relationship is placed into its own individual fetch group, which means |
| it is loaded from a database the first time it is accessed in this |
| transaction. |
| |=== |
| |
| |
| [[beatd]][[GSDPG00154]][[field-name]] |
| |
| === `field-name` |
| |
| Specifies the Java identifier of a field. This identifier must match the |
| value of the `field-name` subelement of the `cmp-field` element in the |
| `ejb-jar.xml` file. |
| |
| [[fvzcm]][[GSDPG00481]][[superelements-69]] |
| |
| ==== Superelements |
| |
| link:#bearu[`cmp-field-mapping`] (`sun-cmp-mappings.xml`) |
| |
| [[fvyxs]][[GSDPG00482]][[subelements-67]] |
| |
| ==== Subelements |
| |
| none - contains data |
| |
| [[beate]][[GSDPG00155]][[finder]] |
| |
| === `finder` |
| |
| Describes the finders for CMP 1.1 with a method name and query. |
| |
| [[fvzao]][[GSDPG00483]][[superelements-70]] |
| |
| ==== Superelements |
| |
| link:#beavk[`one-one-finders`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvzdc]][[GSDPG00484]][[subelements-68]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `finder` element. |
| |
| [[GSDPG916]][[sthref99]][[fvyzu]] |
| |
| |
| Table C-59 `finder` Subelements |
| |
| [width="100%",cols="31%,13%,56%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beavb[`method-name`] |
| |
| |
| |only one |Specifies the method name for the finder. |
| |
| a| |
| link:#beawe[`query-params`] |
| |
| |
| |zero or one |Specifies the query parameters for the CMP 1.1 finder. |
| |
| a| |
| link:#beawb[`query-filter`] |
| |
| |
| |zero or one |Specifies the query filter for the CMP 1.1 finder. |
| |
| a| |
| link:#beawf[`query-variables`] |
| |
| |
| |zero or one |Specifies variables in query expression for the CMP 1.1 |
| finder. |
| |
| a| |
| link:#beawd[`query-ordering`] |
| |
| |
| |zero or one |Specifies the query ordering for the CMP 1.1 finder. |
| |=== |
| |
| |
| [[beatf]][[GSDPG00156]][[flush-at-end-of-method]] |
| |
| === `flush-at-end-of-method` |
| |
| Specifies the methods that force a database flush after execution. |
| Applicable to entity beans. |
| |
| [[fvzcw]][[GSDPG00485]][[superelements-71]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvyza]][[GSDPG00486]][[subelements-69]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `flush-at-end-of-method` element. |
| |
| [[GSDPG917]][[sthref100]][[fvzba]] |
| |
| |
| Table C-60 `flush-at-end-of-method` Subelements |
| |
| [width="100%",cols="26%,18%,56%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beauz[`method`] |
| |
| |
| |one or more |Specifies a bean method. |
| |=== |
| |
| |
| [[beath]][[GSDPG00157]][[gen-classes]] |
| |
| === `gen-classes` |
| |
| Specifies all the generated class names for a bean. |
| |
| |
| [NOTE] |
| ==== |
| This value is automatically generated by the server at deployment or |
| redeployment time. Do not specify it or change it after deployment. |
| ==== |
| |
| |
| [[fvyyh]][[GSDPG00487]][[superelements-72]] |
| |
| ==== Superelements |
| |
| link:#beass[`ejb`] (`glassfish-ejb-jar.xml`) |
| |
| [[fvzee]][[GSDPG00488]][[subelements-70]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `gen-classes` element. |
| |
| [[GSDPG918]][[sthref101]][[fvzdo]] |
| |
| |
| Table C-61 `gen-classes` Subelements |
| |
| [width="100%",cols="20%,11%,69%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beawn[`remote-impl`] |
| |
| |
| |zero or one |Specifies the fully-qualified class name of the generated |
| `EJBObject` impl class. |
| |
| a| |
| link:#beaud[`local-impl`] |
| |
| |
| |zero or one |Specifies the fully-qualified class name of the generated |
| `EJBLocalObject` impl class. |
| |
| a| |
| link:#beawm[`remote-home-impl`] |
| |
| |
| |zero or one |Specifies the fully-qualified class name of the generated |
| `EJBHome` impl class. |
| |
| a| |
| link:#beauc[`local-home-impl`] |
| |
| |
| |zero or one |Specifies the fully-qualified class name of the generated |
| `EJBLocalHome` impl class. |
| |=== |
| |
| |
| [[beaxw]][[GSDPG00158]][[glassfish-application]] |
| |
| === `glassfish-application` |
| |
| Defines the {productName} specific configuration for an application. |
| This is the root element; there can only be one `glassfish-application` |
| element in a `glassfish-application.xml` file. See |
| link:dd-files.html#beaqk[The glassfish-application.xml File]. |
| |
| [[fvzhn]][[GSDPG00489]][[superelements-73]] |
| |
| ==== Superelements |
| |
| none |
| |
| [[fvzgn]][[GSDPG00490]][[subelements-71]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `glassfish-application` element. |
| |
| [[GSDPG919]][[sthref102]][[fvzhl]] |
| |
| |
| Table C-62 `glassfish-application` Subelements |
| |
| [width="100%",cols="28%,12%,60%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beayr[`web`] |
| |
| |
| |zero or more |Specifies the application's web tier configuration. |
| |
| a| |
| link:#beavo[`pass-by-reference`] |
| |
| |
| |zero or one |Determines whether EJB modules use pass-by-value or |
| pass-by-reference semantics. |
| |
| a| |
| link:#beayk[`unique-id`] |
| |
| |
| |zero or one |Contains the unique ID for the application. |
| |
| a| |
| link:#beaxg[`security-role-mapping`] |
| |
| |
| |zero or more |Maps a role in the corresponding Jakarta EE XML file to a |
| user or group. |
| |
| a| |
| link:#beawi[`realm`] |
| |
| |
| |zero or one |Specifies an authentication realm. |
| |
| a| |
| link:#beasu[`ejb-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `ejb-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaww[`resource-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beawu[`resource-env-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-env-ref` in |
| the corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaxk[`service-ref`] |
| |
| |
| |zero or more |Specifies runtime settings for a web service reference. |
| |
| a| |
| link:#gauao[`message-destination-ref`] |
| |
| |
| |zero or more |Specifies the name of a physical message destination. |
| |
| a| |
| link:#beauu[`message-destination`] |
| |
| |
| |zero or more |Specifies the name of a logical message destination. |
| |
| a| |
| link:#gjizj[`archive-name`] |
| |
| |
| |zero or one |Specifies the name of the archive file. |
| |
| a| |
| link:#gjjak[`compatibility`] |
| |
| |
| |zero or one |Specifies the {productName} release with which to be |
| backward compatible in terms of JAR visibility requirements for |
| applications. |
| |
| a| |
| link:#gkhtr[`keep-state`] |
| |
| |
| |zero or one |Retains web sessions, stateful session bean instances, |
| and persistently created EJB timers across redeployments. |
| |
| a| |
| link:#gkkfd[`version-identifier`] |
| |
| |
| |zero or one |Contains version information for an application. |
| |=== |
| |
| |
| [[beaxx]][[GSDPG00159]][[glassfish-application-client]] |
| |
| === `glassfish-application-client` |
| |
| Defines the {productName} specific configuration for an application |
| client. This is the root element; there can only be one |
| `glassfish-application-client` element in a |
| `glassfish-application-client.xml` file. See link:dd-files.html#beaqo[The |
| glassfish-application-client.xml file]. |
| |
| [[fvzgq]][[GSDPG00491]][[superelements-74]] |
| |
| ==== Superelements |
| |
| none |
| |
| [[fvzja]][[GSDPG00492]][[subelements-72]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the |
| `glassfish-application-client` element. |
| |
| [[GSDPG920]][[sthref103]][[fvzjh]] |
| |
| |
| Table C-63 `glassfish-application-client` subelements |
| |
| [width="100%",cols="28%,12%,60%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beasu[`ejb-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `ejb-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaww[`resource-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beawu[`resource-env-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-env-ref` in |
| the corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaxk[`service-ref`] |
| |
| |
| |zero or more |Specifies runtime settings for a web service reference. |
| |
| a| |
| link:#gauao[`message-destination-ref`] |
| |
| |
| |zero or more |Specifies the name of a physical message destination. |
| |
| a| |
| link:#beauu[`message-destination`] |
| |
| |
| |zero or more |Specifies the name of a logical message destination. |
| |
| a| |
| link:#gauax[`java-web-start-access`] |
| |
| |
| |zero or one |Specifies changes to default Java Web Start parameters. |
| |
| a| |
| link:#gkkfd[`version-identifier`] |
| |
| |
| |zero or one |Contains version information for an application client. |
| |=== |
| |
| |
| [[beaya]][[GSDPG00160]][[glassfish-ejb-jar]] |
| |
| === `glassfish-ejb-jar` |
| |
| Defines the {productName} specific configuration for an EJB JAR file. |
| This is the root element; there can only be one `glassfish-ejb-jar` |
| element in a `glassfish-ejb-jar.xml` file. See |
| link:dd-files.html#beaqm[The glassfish-ejb-jar.xml File]. |
| |
| [[fvzhw]][[GSDPG00493]][[superelements-75]] |
| |
| ==== Superelements |
| |
| none |
| |
| [[fvzfv]][[GSDPG00494]][[subelements-73]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `glassfish-ejb-jar` |
| element. |
| |
| [[GSDPG921]][[sthref104]][[fvzfu]] |
| |
| |
| Table C-64 `glassfish-ejb-jar` Subelements |
| |
| [width="100%",cols="36%,12%,52%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beaxg[`security-role-mapping`] |
| |
| |
| |zero or more |Maps a role in the corresponding Jakarta EE XML file to a |
| user or group. |
| |
| a| |
| link:#beasx[`enterprise-beans`] |
| |
| |
| |only one |Describes all the runtime properties for an EJB JAR file in |
| the application. |
| |
| a| |
| link:#gjjak[`compatibility`] |
| |
| |
| |zero or one |Specifies the {productName} release with which to be |
| backward compatible in terms of JAR visibility requirements for |
| applications. |
| |
| a| |
| link:#gkhtw[`disable-nonportable-jndi-names`] |
| |
| |
| |zero or one |Disables {productName} specific JNDI names. |
| |
| a| |
| link:#gkhtr[`keep-state`] |
| |
| |
| |zero or one |Retains stateful session bean instances and persistently |
| created EJB timers across redeployments. |
| |
| a| |
| link:#gkkfd[`version-identifier`] |
| |
| |
| |zero or one |Contains version information for an EJB module. |
| |=== |
| |
| |
| [[beayb]][[GSDPG00161]][[glassfish-web-app]] |
| |
| === `glassfish-web-app` |
| |
| Defines {productName} specific configuration for a web module. This |
| is the root element; there can only be one `glassfish-web-app` element |
| in a `glassfish-web.xml` file. See link:dd-files.html#beaql[The |
| glassfish-web.xml File]. |
| |
| [[fvzgj]][[GSDPG00495]][[superelements-76]] |
| |
| ==== Superelements |
| |
| none |
| |
| [[fvzhr]][[GSDPG00496]][[subelements-74]] |
| |
| ==== Subelements |
| |
| The following table describes subelements for the `glassfish-web-app` |
| element. |
| |
| [[GSDPG922]][[sthref105]][[fvzgf]] |
| |
| |
| Table C-65 `glassfish-web-app` Subelements |
| |
| [width="100%",cols="28%,12%,60%",options="header",] |
| |=== |
| |Element |Required |Description |
| a| |
| link:#beasg[`context-root`] |
| |
| |
| |zero or one |Contains the web context root for the web module. |
| |
| a| |
| link:#beaxg[`security-role-mapping`] |
| |
| |
| |zero or more |Maps roles to users or groups in the currently active |
| realm. |
| |
| a| |
| link:#beaxm[`servlet`] |
| |
| |
| |zero or more |Specifies a principal name for a servlet, which is used |
| for the `run-as` role defined in `web.xml`. |
| |
| a| |
| link:#beatm[`idempotent-url-pattern`] |
| |
| |
| |zero or more |Specifies a URL pattern for idempotent requests. |
| |
| a| |
| link:#beaxp[`session-config`] |
| |
| |
| |zero or one |Specifies session manager, session cookie, and other |
| session-related information. |
| |
| a| |
| link:#beasu[`ejb-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `ejb-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaww[`resource-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-ref` in the |
| corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beawu[`resource-env-ref`] |
| |
| |
| |zero or more |Maps the absolute JNDI name to the `resource-env-ref` in |
| the corresponding Jakarta EE XML file. |
| |
| a| |
| link:#beaxk[`service-ref`] |
| |
| |
| |zero or more |Specifies runtime settings for a web service reference. |
| |
| a| |
| link:#gauao[`message-destination-ref`] |
| |
| |
| |zero or more |Specifies the name of a physical message destination. |
| |
| a| |
| link:#beard[`cache`] |
| |
| |
| |zero or one |Configures caching for web application components. |
| |
| a| |
| link:#bearq[`class-loader`] |
| |
| |
| |zero or one |Specifies class loader configuration information. |
| |
| a| |
| link:#beatx[`jsp-config`] |
| |
| |
| |zero or one |Specifies JSP configuration information. |
| |
| a| |
| link:#beaue[`locale-charset-info`] |
| |
| |
| |zero or one |Deprecated. Use the `parameter-encoding` subelement of |
| `glassfish-web-app` instead. |
| |
| a| |
| link:#beavn[`parameter-encoding`] |
| |
| |
| |zero or one |Determines the default request character encoding and how |
| the web container decodes parameters from forms according to a hidden |
| field value. |
| |
| a| |
| link:#beavx[`property` (with attributes)] |
| |
| |
| |zero or more |Specifies a property, which has a name and a value. |
| |
| a| |
| link:#gikqk[`valve`] |
| |
| |
| |zero or more |Specifies a custom valve. |
| |
| a| |
| link:#beauu[`message-destination`] |
| |
| |
| |zero or more |Specifies the name of a logical message destination. |
| |
| a| |
| link:#beayt[`webservice-description`] |
| |
| |
| |zero or more |Specifies a name and optional publish location for a web |
| service. |
| |
| a| |
| link:#gkhtr[`keep-state`] |
| |
| |
| |zero or one |Retains web sessions across redeployments. |
| |
| a| |
| link:#gkkfd[`version-identifier`] |
| |
| |
| |zero or one |Contains version information for a web application. |
| |=== |
| |
| |
| [[fvzia]][[GSDPG00497]][[attributes-16]] |
| |
| ==== Attributes |
| |
| The following table describes attributes for the `glassfish-web-app` |
| element. |
| |
| [[GSDPG923]][[sthref106]][[fvzjf]] |
| |
| |
| Table C-66 `glassfish-web-app` Attributes |
| |
| [width="172%",cols="17%,46%,37%",options="header",] |
| |=== |
| |Attribute |Default |Description |
| |`error-url` |(blank) |(optional) Not implemented. Do not use. |
| |
| |`httpservlet-``security-``provider` |none |(optional) Specifies the |
| `HttpServlet` message layer provider that the web container's servlet |
| `auth-constraint` processing calls. |
| |=== |
| |
| |
| [[fvzgt]][[GSDPG00498]][[properties-7]] |
| |
| ==== Properties |
| |
| The following table describes properties for the `glassfish-web-app` |
| element. |
| |
| [[GSDPG924]][[sthref107]][[fvzim]] |
| |
| |
| Table C-67 `glassfish-web-app` Properties |
| |
| [width="100%",cols="35%,23%,42%",options="header",] |
| |=== |
| |Property |Default |Description |
| |`allowLinking` |`false` a| |
| If `true`, resources in this web application that are symbolic links are |
| served. You can also define this property for a virtual server. Web |
| applications on the virtual server that do not define this property use |
| the virtual server's value. For details, see |
| link:reference-manual/create-virtual-server.html#GSRFM00062[`create-virtual-server`(1)]. |
| |
| Caution: Setting this property to `true` on Windows systems exposes JSP |
| source code. |
| |
| |`alternatedocroot_n` |none a| |
| Specifies an alternate document root (docroot), where n is a positive |
| integer that allows specification of more than one. Alternate docroots |
| allow web applications to serve requests for certain resources from |
| outside their own docroot, based on whether those requests match one (or |
| more) of the URI patterns of the web application's alternate docroots. |
| |
| If a request matches an alternate docroot's URI pattern, it is mapped to |
| the alternate docroot by appending the request URI (minus the web |
| application's context root) to the alternate docroot's physical location |
| (directory). If a request matches multiple URI patterns, the alternate |
| docroot is determined according to the following precedence order: |
| |
| * Exact match |
| * Longest path match |
| * Extension match |
| |
| For example, the following properties specify three alternate docroots. |
| The URI pattern of the first alternate docroot uses an exact match, |
| whereas the URI patterns of the second and third alternate docroots use |
| extension and longest path prefix matches, respectively. |
| |
| [source,xml] |
|