|
Glassfish example source code file (sun-server_1_0.dtd)
The Glassfish sun-server_1_0.dtd source code<!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms --> <!ENTITY % boolean "(yes | no | on | off | 1 | 0 | true | false)"> <!ENTITY % severity "(FINEST|FINER|FINE|CONFIG|INFO|WARNING|SEVERE|ALERT|FATAL)"> <!ENTITY % isolation "(read-uncommitted | read-committed | repeatable-read | serializable)"> <!-- J2EE Application Server Configuration Each Application Server instance is a J2EEv1.3 compliant container. One server instance is specially designated as the Administration Server. User applications cannot be deployed to an Adminsitration Server instance. instance-name name of the server instance. locale If present logging and Administration interface, will use the specified locale. Overrides OS locale setting. log-root specifies where the server instance's log files are kept, including HTTP access logs, server logs, and transaction logs. Default is $INSTANCE_ROOT/logs session-store specifies the directory where passivated beans and persisted HTTP sessions are stored on the file system. Defaults to $INSTANCE_ROOT/session-store applications-root Directory where deployed application are stored. Defaults to $INSTANCE_ROOT/applications --> <!ELEMENT server (http-service, iiop-service, admin-service?, web-container, ejb-container, mdb-container, jms-service, log-service, security-service, transaction-service, java-config, resources, applications, property*)> <!ATTLIST server name CDATA #REQUIRED locale CDATA #IMPLIED log-root CDATA #IMPLIED application-root CDATA #IMPLIED session-store CDATA #IMPLIED> <!-- HTTP service configuration --> <!ELEMENT http-service ((http-listener | mime | acl | virtual-server-class)*, http-qos?, property*)> <!ATTLIST http-service qos-metrics-interval-in-seconds CDATA "30" qos-recompute-time-interval-in-millis CDATA "100" qos-enabled %boolean; "true"> <!-- Configure HTTP listener id Unique identifier for http listener. address IP address of the listen socket. Can be in dotted-pair or IPv6 notation. Can also be any for INADDR_ANY. Configuring a listen socket to listen on any is required if more than one http-listener is configured to it. port Port number to create the listen socket on. Legal values are 1 - 65535. On Unix, creating sockets that listen on ports 1 - 1024 requires superuser privileges. Configuring an SSL listen socket to listen on port 443 is recommended. security-enabled (optional) Determines whether the http listener runs SSL. You can turn SSL2 or SSL3 on or off and set ciphers using an ssl element The Security setting in the init.conf file globally enables or disables SSL by making certificates available to the server instance. Therefore, Security in init.conf must be on or security in server.xml does not work. acceptor-threads (optional) Number of acceptor threads for the listen socket. The recommended value is the number of processors in the machine. family (optional) The socket family type. The default is inet. Legal values are inet, inet6, and nca. Use the value inet6 for IPv6 listen sockets. When using the value of inet6, IPv4 addresses will be prefixed with ::ffff: in the log file. Specify nca to make use of the Solaris Network Cache and Accelerator. blocking-enabled (optional) Determines whether the http listener socket and the accepted socket are put in to blocking mode. Use of blocking mode may improve benchmark scores. default-virtual-server The id attribute of the default virtual server for this particular connection group. server-name Tells the server what to put in the host name section of any URLs it sends to the client. This affects URLs the server automatically generates; it doesn't affect the URLs for directories and files stored in the server. This name should be the alias name if your server uses an alias. If you append a colon and port number, that port will be used in URLs the server sends to the client. --> <!ELEMENT http-listener (ssl?)> <!ATTLIST http-listener id CDATA #REQUIRED address CDATA #REQUIRED port CDATA #REQUIRED family CDATA #IMPLIED acceptor-threads CDATA "1" blocking-enabled %boolean; "false" security-enabled %boolean; "false" default-virtual-server CDATA #REQUIRED server-name CDATA #REQUIRED enabled %boolean; "true"> <!-- Define SSL processing parameters cert-nickname nickname of the server certificate in the certificate database or the PKCS#11 token. In the certificate, the name format is tokenname:nickname. Including the tokenname: part of the name in this attribute is optional. ssl2-enabled (optional) Determines whether SSL2 is enabled. ssl3-enabled (optional) Determines whether SSL3 is enabled. If both SSL2 and SSL3 are enabled for a virtual server, the server tries SSL3 encryption first. If that fails, the server tries SSL2 encryption. ssl2-ciphers (optional) A comma-separated list of the SSL2 ciphers used, with the prefix + to enable or - to disable, for example +rc4. Allowed values are rc4, rc4export, rc2, rc2export, idea, des, desede3. If no value is specified, all supported ciphers are assumed to be enabled. ssl3-tls-ciphers (optional) A comma-separated list of the SSL3 ciphers used, with the prefix + to enable or - to disable, for example +rsa_des_sha. Allowed SSL3 values are rsa_rc4_128_md5, rsa3des_sha, rsa_des_sha, rsa_rc4_40_md5, rsa_rc2_40_md5, rsa_null_md5. Allowed TLS values are rsa_des_56_sha, rsa_rc4_56_sha. If no value is specified, all supported ciphers are assumed to be enabled. tls-enabled (optional) Determines whether TLS is enabled. tls-rollback-enabled (optional) Determines whether TLS rollback is enabled. TLS rollback should be enabled for Microsoft Internet Explorer 5.0 and 5.5. client-auth-enabled (optional) Determines whether SSL3 client authentication is performed on every request, independent of ACL-based access control. --> <!ELEMENT ssl EMPTY> <!ATTLIST ssl cert-nickname CDATA #REQUIRED ssl2-enabled %boolean; "false" ssl2-ciphers CDATA #IMPLIED ssl3-enabled %boolean; "true" ssl3-tls-ciphers CDATA #IMPLIED tls-enabled %boolean; "true" tls-rollback-enabled %boolean; "true" client-auth-enabled %boolean; "false"> <!-- Defines MIME types. The most common way that the server determines the MIME type of a requested resource is by invoking the type-by-extension directive in the ObjectType section of the obj.conf file. The type-by-extension function does not work if no MIME element has been defined in the SERVER element. id Internal name for the MIME types listing. Used in a virtual-server element to define the MIME types used by the virtual server. file name of a MIME types file. --> <!ELEMENT mime EMPTY> <!ATTLIST mime id CDATA #REQUIRED file CDATA #REQUIRED> <!-- ACL File references id internal name for the ACL file listing. Used in a Vrtual Server element to define the ACL file used by the virtual server. file name of the default ACL file --> <!ELEMENT acl EMPTY> <!ATTLIST acl id CDATA #REQUIRED file CDATA #REQUIRED> <!-- virtual-server-class provides a way to specify a set of properties that will apply to several virtual server instances. id Virtual server class ID. This is a unique ID that allows lookup of a specific virtual server class. config-file file name of alternative obj.conf file for class of virtual servers. Can be overridden in a virtual-server element. default-object (optional) names the object loaded from an obj.conf file which is the default. The default object is expected to have all the name translation (NameTrans) directives for the virtual server; any server behavior that is configured in the default object affects the entire virtual server class. The default value is default. If you specify an object that doesn't exist, the server doesn't report an error until a client tries to retrieve a document. The Server Manager assumes the default to be the object named default. Don't deviate from this convention if you use (or plan to use) the Server Manager. accept-language (optional) If on, the server parses the Accept-Language header and sends an appropriate language version based on which language the client can accept. You should set this value to on only if the server supports multiple languages. The default is off. Can be overridden in a virtual-server element. --> <!ELEMENT virtual-server-class (virtual-server*, http-qos?, property*)> <!ATTLIST virtual-server-class id CDATA #REQUIRED config-file CDATA #IMPLIED default-object CDATA "default" accept-language %boolean; "false" enabled %boolean; "true"> <!-- Configuration of Virtual Server Virtualization in Application Server allows multiple URL domains to be served by the same HTTP server process, which is listening on multiple host addresses If an application is available at two virtual servers, they still share same physical resource pools, such as JDBC connection pools. Sun Application Server allows a list of virtual servers, to be specified along with web-module and j2ee-application elements. This establishes an association between URL domains, represented by the virtual server and the web modules (standalone web modules or web modules inside the ear file) id Virtual server ID. This is a unique ID that allows lookup of a specific virtual server. Can also be referred to as the variable $id in an obj.conf file. A virtual server ID cannot begin with a number. http-listeners (optional) A comma-separated list of http-listener id(s), Required only for a Virtual Server that is not the default virtual server. default-web-module (optional) stand alone web module associated with this virtual server by default. config-file (optional) Typically all virtual server initialization is from $INSTANCE_ROOT/config/obj.conf. This can be changed using this attribute. hosts A comma-separated list of values allowed in the Host request header to select the current virtual server. Each Virtual Server that is configured to the same Connection Group must have a unique hosts value for that group. mime The id of the mime element used by the virtual server. state (optional) Determines whether a Virtual Server is active (on) or inactive (off, disable). The default is on (active). When inactive, a Virtual Server does not service requests. If a Virtual Server is disabled, only the server administrator can turn it on. acls (optional) One or more id attributes of <acl> elements, separated by commas. Specifies the ACL file(s) used by the virtual server. log-file (optional) Specifies a log file for virtual-server-specific log messages. If this is not specified, log messages go to $LOG_ROOT/server.log accept-language (optional) If on, the server parses the Accept-Language header and sends an appropriate language version based on which language the client can accept. You should set this value to on only if the server supports multiple languages. The default is picked up from the virtual-server-class. --> <!ELEMENT virtual-server (http-qos?, auth-db*, property*)> <!ATTLIST virtual-server id CDATA #REQUIRED http-listeners CDATA #IMPLIED default-web-module CDATA #IMPLIED config-file CDATA #IMPLIED default-object CDATA #IMPLIED hosts CDATA #REQUIRED mime CDATA #REQUIRED state (on | off | disabled ) "on" acls CDATA #IMPLIED accept-language %boolean; #IMPLIED log-file CDATA #IMPLIED> <!-- http-qos defines the Quality of Service paramaters on HTTP path. bandwidth-limit (optional) maximum bandwidth limit for the Virtual Server Class, or Virtual Server, in bytes per second. Default is No Limit. enforce-bandwidth-limit (optional) whether the bandwidth limit should be enforced or not. connection-limit (optional) maximum number of concurrent connections for the server, virtual-server-class, or virtual-server. enforce-connection-limit (optional) whether the connection limit should be enforced or not. --> <!ELEMENT http-qos EMPTY> <!ATTLIST http-qos bandwidth-limit CDATA #IMPLIED enforce-bandwidth-limit %boolean; "false" connection-limit CDATA #IMPLIED enforce-connection-limit %boolean; "false"> <!-- auth-db defines the user database used by the virtual server. id user database name in the virtual server's ACL file. database user database name in the dbswitch.conf file. basedn (optional) Overrides the base DN lookup in the dbswitch.conf file. However, the basedn value is still relative to the base DN value from the dbswitch.conf entry. certmaps (optional) certificate to LDAP entry mappings (defined in certmap.conf) to use. If not present, all mappings are used. All lookups based on mappings in certmap.conf are relative to the final base DN (distinguished name) of the Virtual Server. --> <!ELEMENT auth-db EMPTY> <!ATTLIST auth-db id CDATA #REQUIRED database CDATA #REQUIRED basedn CDATA #IMPLIED certmaps CDATA #IMPLIED> <!-- ORB underlies the EJB container. Requests for EJBs from Application Client Container(s) or from another EJB interoperability capable J2EE Container(s) are serviced by iiop listener(s). One non-SSL iiop listener can be configured. SSL support may require up to two SSL secured IIOP listeners to be configured: Server Authentication only, Mutual Authentication only, or both. ssl-client-config element specifies the SSL configuration when the Application Server is making outbound IIOP/SSL connections. By default, a server instance will configure non-secure IIOP access. Administrator can create and configure IIOP/SSL listener(s). --> <!ELEMENT iiop-service (orb, ssl-client-config?, iiop-listener*)> <!-- Orb Configuration properties message-fragment-size GIOPv1.2 messages larger than this will get fragmented. steady-thread-pool-size minimum number of threads listening for incoming requests. max-thread-pool-size maximum number of threads that can listen for requests idle-thread-timeout-in-seconds idle threads are removed from pool, after this time log-level Can be set to control verbosity of log messages from Orb monitoring-enabled Enables statistics collection max-connections maximum number of incoming connections, on all listeners --> <!ELEMENT orb (property*)> <!ATTLIST orb message-fragment-size CDATA "1024" steady-thread-pool-size CDATA "10" max-thread-pool-size CDATA "200" idle-thread-timeout-in-seconds CDATA "300" max-connections CDATA "1024" log-level %severity;#IMPLIED monitoring-enabled %boolean; "false"> <!-- Client SSL Configuration --> <!ELEMENT ssl-client-config (ssl)> <!-- IIOP Listener Configuration. ssl element specifies optional SSL configuration id unique identifier for this listener. address ip address or hostname (resolvable by DNS) port port number enabled if false, a configured listener, is disabled --> <!ELEMENT iiop-listener (ssl?, property*)> <!ATTLIST iiop-listener id CDATA #REQUIRED address CDATA #REQUIRED port CDATA "1072" enabled %boolean; "true"> <!-- Administration Server is a distinguished server instance. server-instance group of server instances administered by this Administration Server. log-level controls verbosity of log messages from Administration --> <!ELEMENT admin-service (server-instance | property)*> <!ATTLIST admin-service log-level %severity; #IMPLIED> <!-- Administered Server instance name Name of the server instance --> <!ELEMENT server-instance EMPTY> <!ATTLIST server-instance name CDATA #REQUIRED> <!-- J2EE Applications look up resources registered with the Application server, using portable JNDI names. --> <!ELEMENT resources ((custom-resource | external-jndi-resource | jdbc-resource | mail-resource | jms-resource | persistence-manager-factory-resource | jdbc-connection-pool)*)> <!-- Textual description of a configured entity --> <!ELEMENT description (#PCDATA)> <!-- custom (or generic) resource managed by a user-written factory class. --> <!ELEMENT custom-resource (description?, property*)> <!-- JNDI name for generic resource, the fully qualified type of the resource and whether it is enabled at runtime --> <!ATTLIST custom-resource jndi-name CDATA #REQUIRED res-type CDATA #REQUIRED factory-class CDATA #REQUIRED enabled %boolean; "true"> <!-- resource residing in an external JNDI repository --> <!ELEMENT external-jndi-resource (description? , property*)> <!ATTLIST external-jndi-resource jndi-name CDATA #REQUIRED jndi-lookup-name CDATA #REQUIRED res-type CDATA #REQUIRED factory-class CDATA #REQUIRED enabled %boolean; "true"> <!-- JDBC javax.sql.(XA)DataSource resource definition --> <!ELEMENT jdbc-resource (description?, property*)> <!ATTLIST jdbc-resource jndi-name CDATA #REQUIRED pool-name CDATA #REQUIRED enabled %boolean; "true"> <!-- jdbc-connection-pool defines configuration used to create and manage a pool physical database connections. Pool definition is named, and can be referred to by multiple jdbc-resource elements (See <jdbc-resource>). Each named pool definition results in a pool instantiated at server start-up. Pool is populated when accessed for the first time. If two or more jdbc-resource elements point to the same jdbc-connection-pool element, they are using the same pool of connections, at run time. name unique name of the pool definition. datasource-classname Name of the vendor supplied JDBC datasource resource manager. An XA or global transactions capable datasource class will implement javax.sql.XADatasource interface. Non XA or Local transactions only datasources will implement javax.sql.Datasource interface. res-type DataSource implementation class could implement one or both of javax.sql.DataSource, javax.sql.XADataSource interfaces. This optional attribute must be specified to disambiguate when a Datasource class implements both interfaces. An error is produced when this attribute has a legal value and the indicated interface is not implemented by the datasource class. This attribute has no default value. steady-pool-size minimum and initial number of connections maintained in the pool. max-pool-size maximum number of conections that can be created max-wait-time-in-millis amount of time the caller will wait before getting a connection timeout. The default is 60 seconds. A value of 0 will force caller to wait indefinitely. pool-resize-quantity number of connections to be removed when idle-timeout-in-seconds timer expires. Connections that have idled for longer than the timeout are candidates for removal. When the pool size reaches steady-pool-size, the connection removal stops. idle-timeout-in-seconds maximum time in seconds, that a connection can remain idle in the pool. After this time, the pool implementation can close this connection. Note that this does not control connection timeouts enforced at the database server side. Adminsitrators are advised to keep this timeout shorter than the database server side timeout (if such timeouts are configured on the specific vendor's database), to prevent accumulation of unusable connection in Application Server. transaction-isolation-level Specifies the Transaction Isolation Level on the pooled database connections. Optional. Has no default. If left unspecified the pool operates with default isolation level provided by the JDBC Driver. A desired isolation level can be set using one of the standard transaction isolation levels: read-uncommitted, read-committed, repeatable-read, serializable Applications that change the Isolation level on a pooled connection programmatically, risk polluting the pool and this could lead to program errors. Also see: is-isolation-level-guaranteed is-isolation-level-guaranteed Applicable only when a particular isolation level is specified for transaction-isolation-level. The default value is true. This assures that every time a connection is obtained from the pool, it is guaranteed to have the isolation set to the desired value. This could have some performance impact on some JDBC drivers. Can be set to false by that administrator when they are certain that the application does not change the isolation level before returning the connection. is-connection-validation-required if true, connections are validated (checked to find out if they are usable) before giving out to the application. The default is false. If is-connection-validation-required is true then connection-validation-type specifies the type of validation to be performed. Three types of validation are supported: 1) using connection.autoCommit(), 2) using connection.getMetaData() 3) performing a query on a user specified table (see validation-table-name). The possible values are one of: auto-commit | meta-data | table validation-table-name specifies the table name to be used to perform a query to validate a connection. This parameter is mandatory, if connection-validation-type set to table. Verification by accessing a user specified table may become necessary for connection validation, particularly if database driver caches calls to setAutoCommit() and getMetaData(). fail-all-connections: indicates if all connections in the pool must be closed should a single validation check fail. The default is false. One attempt will be made to re-establish failed connections. Use of property lists: Most JDBC 2.0 drivers permit use of standard property lists, to specify User, Password and other resource configuration. While these are optional properties, according to the specification, several of these properties may be necessary for most databases. See Section 5.3 of JDBC 2.0 Standard Extension API. Name Value databaseName Name of the Database. serverName Database Server name. port Port where a Database server is listening for requests. networkProtocol Communication Protocol used. user default name of the database user with which connections will be stablished. Programmatic database authentication or default-resource-principal specified in vendor specific web and ejb deployment descriptors will take precedence, over this default. The details and caveats are described in detail in the Administrator's guide. password password for default database user roleName The initial SQL role name. datasourceName used to name an underlying XADataSource, or ConnectionPoolDataSource when pooling of connections is done description Textual description When one or more of these properties are specified, they are passed as is using set<Name>( Other Glassfish examples (source code examples)Here is a short list of links related to this Glassfish sun-server_1_0.dtd source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.