| Links Top Level Elements Executors Connectors Containers Nested Components Cluster Elements web.xml Other | Apache Tomcat Configuration ReferenceThe GlobalNamingResources Component| Introduction |  | 
  The GlobalNamingResources element defines the global
  JNDI resources for the Server. These resources are listed in the server's global JNDI resource context.
   This context is distinct from the per-web-application JNDI contexts 
  described in
  the JNDI Resources HOW-TO.
  The resources defined in this element are not visible in
  the per-web-application contexts unless you explicitly link them with
  <ResourceLink> elements.
   | 
 | Special Features |  | 
  | Environment Entries |  | 
  You can configure named values that will be made visible to all
    web applications as environment entry resources by nesting
    <Environment>entries inside this element. For
    example, you can create an environment entry like this: |  |  |  |  |  | 
<GlobalNamingResources ...>
  ...
  <Environment name="maxExemptions" value="10"
         type="java.lang.Integer" override="false"/>
  ...
</GlobalNamingResources>
 |  |  |  |  |  | 
This is equivalent to the inclusion of the following element in the
    web application deployment descriptor (/WEB-INF/web.xml): |  |  |  |  |  | 
<env-entry>
  <env-entry-name>maxExemptions</env-entry-name>
  <env-entry-value>10</env-entry-value>
  <env-entry-type>java.lang.Integer</env-entry-type>
</env-entry>
 |  |  |  |  |  | 
but does not require modification of the deployment descriptor
    to customize this value. The valid attributes for an <Environment>element
    are as follows: | Attribute | Description | 
|---|
 | description | Optional, human-readable description of this environment entry. |  | name | The name of the environment entry to be created, relative to the
        java:comp/envcontext. |  | override | Set this to falseif you do not want
        an<env-entry>for the same environment entry name,
        found in the web application deployment descriptor, to override the
        value specified here.  By default, overrides are allowed. |  | type | The fully qualified Java class name expected by the web application
        for this environment entry.  Must be one of the legal values for
        <env-entry-type>in the web application deployment
        descriptor:java.lang.Boolean,java.lang.Byte,java.lang.Character,java.lang.Double,java.lang.Float,java.lang.Integer,java.lang.Long,java.lang.Short, orjava.lang.String. |  | value | The parameter value that will be presented to the application
        when requested from the JNDI context.  This value must be convertable
        to the Java type defined by the typeattribute. | 
 | 
 | Transaction |  | 
    You can declare the characteristics of the UserTransaction
    to be returned for JNDI lookup for java:comp/UserTransaction. 
    You MUST define an object factory class to instantiate
    this object as well as the needed resource parameters as attributes of theTransactionelement, and the properties used to configure that object factory. The valid attributes for the <Transaction>element
    are as follows: | Attribute | Description | 
|---|
 | factory | The class name for the JNDI object factory. | 
 | 
 | 
 |