以 PDF 格式下載這本書 (1146 KB)
CcacheConfigures caching for web application components. Superelementssun-web-app (sun-web.xml) SubelementsThe following table describes subelements for the cache element. Table A–9 cache Subelements
AttributesThe following table describes attributes for the cache element. Table A–10 cache Attributes
PropertiesThe following table describes properties for the cache element. Table A–11 cache Properties
Cache Class NamesThe following table lists possible values of the cacheClassName property. Table A–12 cacheClassName Values
cache-helperSpecifies a class that implements the com.sun.appserv.web.cache.CacheHelper interface. Superelementscache (sun-web.xml) SubelementsThe following table describes subelements for the cache-helper element. Table A–13 cache-helper Subelements
AttributesThe following table describes attributes for the cache-helper element. Table A–14 cache-helper Attributes
cache-helper-refSpecifies the name of the cache-helper used by the parent cache-mapping element. Superelementscache-mapping (sun-web.xml) Subelementsnone - contains data cache-idle-timeout-in-secondsSpecifies 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. Superelementsbean-cache (sun-ejb-jar.xml) Subelementsnone - contains data cache-mappingMaps a URL pattern or a servlet name to its cacheability constraints. Superelementscache (sun-web.xml) SubelementsThe following table describes subelements for the cache-mapping element. Table A–15 cache-mapping Subelements
call-propertySpecifies 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. Superelementsport-info, service-ref (sun-web.xml, sun-ejb-jar.xml, sun-application-client.xml) SubelementsThe following table describes subelements for the call-property element. Table A–16 call-property subelements
caller-propagationSpecifies whether the target accepts propagated caller identities. The values are NONE, SUPPORTED, or REQUIRED. Superelementssas-context (sun-ejb-jar.xml) Subelementsnone - contains data cert-dbNot implemented. Included for backward compatibility only. Attribute values are ignored. Superelementssecurity (sun-acc.xml) Subelementsnone AttributesThe following table describes attributes for the cert-db element. Table A–17 cert-db attributes
check-all-at-commitThis element is not implemented. Do not use. Superelementsconsistency (sun-cmp-mappings.xml) check-modified-at-commitChecks concurrent modification of fields in modified beans at commit time. Superelementsconsistency (sun-cmp-mappings.xml) Subelementsnone - element is present or absent check-version-of-accessed-instancesChecks 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. Superelementsconsistency (sun-cmp-mappings.xml) SubelementsThe following table describes subelements for the check-version-of-accessed-instances element. Table A–18 check-version-of-accessed-instances Subelements
checkpoint-at-end-of-methodEnterprise Edition only. Do not use. Superelementsejb (sun-ejb-jar.xml) checkpointed-methodsEnterprise Edition only. Do not use. Superelementsejb (sun-ejb-jar.xml) class-loaderConfigures the class loader for the web module. Superelementssun-web-app (sun-web.xml) SubelementsThe following table describes subelements for the class-loader element. Table A–19 class-loader Subelements
AttributesThe following table describes attributes for the class-loader element. Table A–20 class-loader Attributes
Note – If the delegate element 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 Java EE specification. The behavior of a program that includes such classes or interfaces in its WAR file is undefined. PropertiesThe following table describes properties for the class-loader element. Table A–21 class-loader Properties
client-containerDefines the Application Server 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 The sun-acc.xml File. Superelementsnone SubelementsThe following table describes subelements for the client-container element. Table A–22 client-container Subelements
AttributesThe following table describes attributes for the client-container element. Table A–23 client-container Attributes
client-credentialDefault 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. Superelementsclient-container (sun-acc.xml) SubelementsThe following table describes subelements for the client-credential element. Table A–24 client-credential subelement
AttributesThe following table describes attributes for the client-credential element. Table A–25 client-credential attributes
cmpDescribes runtime information for a CMP entity bean object for EJB 1.1 and EJB 2.1 beans. Superelementsejb (sun-ejb-jar.xml) SubelementsThe following table describes subelements for the cmp element. Table A–26 cmp Subelements
cmp-field-mappingThe 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. Superelementsentity-mapping (sun-cmp-mappings.xml) SubelementsThe following table describes subelements for the cmp-field-mapping element. Table A–27 cmp-field-mapping Subelements
cmp-resourceSpecifies the database to be used for storing CMP beans. For more information about this element, see Configuring the CMP Resource in Sun Java System Application Server Platform Edition 9 Developer’s Guide. Superelementsenterprise-beans (sun-ejb-jar.xml) SubelementsThe following table describes subelements for the cmp-resource element. Table A–28 cmp-resource Subelements
cmr-field-mappingA 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. Superelementsentity-mapping (sun-cmp-mappings.xml) SubelementsThe following table describes subelements for the cmr-field-mapping element. Table A–29 cmr-field-mapping Subelements
cmr-field-nameSpecifies 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. Superelementscmr-field-mapping (sun-cmp-mappings.xml) Subelementsnone - contains data cmt-timeout-in-secondsOverrides 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. Superelementsejb (sun-ejb-jar.xml) Subelementsnone - contains data column-nameSpecifies 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. Superelementscheck-version-of-accessed-instances, cmp-field-mapping, column-pair (sun-cmp-mappings.xml) Subelementsnone - contains data column-pairSpecifies 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. Superelementscmr-field-mapping, secondary-table (sun-cmp-mappings.xml) SubelementsThe following table describes subelements for the column-pair element. Table A–30 column-pair Subelements
commit-optionSpecifies the commit option used on transaction completion. Valid values for the Application Server are B or C. Default value is B. Applies to entity beans. Note – Commit option A is not supported for this Application Server release. Superelementsejb (sun-ejb-jar.xml) Subelementsnone - contains data confidentialitySpecifies if the target supports privacy-protected messages. The values are NONE, SUPPORTED, or REQUIRED. Superelementstransport-config (sun-ejb-jar.xml) Subelementsnone - contains data consistencySpecifies container behavior in guaranteeing transactional consistency of the data in the bean. Superelementsentity-mapping (sun-cmp-mappings.xml) SubelementsThe following table describes subelements for the consistency element. Table A–31 consistency Subelements
constraint-fieldSpecifies a cacheability constraint for the given url-pattern or 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. Superelementscache-mapping (sun-web.xml) SubelementsThe following table describes subelements for the constraint-field element. Table A–32 constraint-field Subelements
AttributesThe following table describes attributes for the constraint-field element. Table A–33 constraint-field Attributes
constraint-field-valueSpecifies a value to be matched to the input parameter value. The matching is case sensitive. For example: <value match-expr="in-range">1-60</value> Superelementsconstraint-field (sun-web.xml) Subelementsnone - contains data AttributesThe following table describes attributes for the constraint-field-value element. Table A–34 constraint-field-value Attributes
context-rootContains the web context root for the application or web application. 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 java-web-start-access. Superelementsweb (sun-application.xml), sun-web-app (sun-web.xml), java-web-start-access (sun-application-client.xml) Subelementsnone - contains data cookie-propertiesSpecifies session cookie properties. Superelementssession-config (sun-web.xml) SubelementsThe following table describes subelements for the cookie-properties element. Table A–35 cookie-properties Subelements
PropertiesThe following table describes properties for the cookie-properties element. Table A–36 cookie-properties Properties
create-tables-at-deploySpecifies 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 Generation Options for CMP in Sun Java System Application Server Platform Edition 9 Developer’s Guide. Superelementscmp-resource (sun-ejb-jar.xml) Subelementsnone - contains data |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||