📄 ejb-jar_2_1.xsd
字号:
<?xml version="1.0" encoding="UTF-8"?><xsd:schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://java.sun.com/xml/ns/j2ee" xmlns:j2ee="http://java.sun.com/xml/ns/j2ee" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.1"> <xsd:annotation> <xsd:documentation> @(#)ejb-jar_2_1.xsds 1.23 08/01/03 </xsd:documentation> </xsd:annotation> <xsd:annotation> <xsd:documentation> Copyright 2003 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. Sun Microsystems, Inc. has intellectual property rights relating to technology described in this document. In particular, and without limitation, these intellectual property rights may include one or more of the U.S. patents listed at http://www.sun.com/patents and one or more additional patents or pending patent applications in the U.S. and other countries. This document and the technology which it describes are distributed under licenses restricting their use, copying, distribution, and decompilation. No part of this document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Sun, Sun Microsystems, the Sun logo, Solaris, Java, J2EE, JavaServer Pages, Enterprise JavaBeans and the Java Coffee Cup logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Federal Acquisitions: Commercial Software - Government Users Subject to Standard License Terms and Conditions. </xsd:documentation> </xsd:annotation> <xsd:annotation> <xsd:documentation> <![CDATA[ This is the XML Schema for the EJB 2.1 deployment descriptor. The deployment descriptor must be named "META-INF/ejb-jar.xml" in the EJB's jar file. All EJB deployment descriptors must indicate the ejb-jar schema by using the J2EE namespace: http://java.sun.com/xml/ns/j2ee and by indicating the version of the schema by using the version element as shown below: <ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd" version="2.1"> ... </ejb-jar> The instance documents may indicate the published version of the schema using the xsi:schemaLocation attribute for the J2EE namespace with the following location: http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd ]]> </xsd:documentation> </xsd:annotation> <xsd:annotation> <xsd:documentation> The following conventions apply to all J2EE deployment descriptor elements unless indicated otherwise. - In elements that specify a pathname to a file within the same JAR file, relative filenames (i.e., those not starting with "/") are considered relative to the root of the JAR file's namespace. Absolute filenames (i.e., those starting with "/") also specify names in the root of the JAR file's namespace. In general, relative names are preferred. The exception is .war files where absolute names are preferred for consistency with the Servlet API. </xsd:documentation> </xsd:annotation> <xsd:include schemaLocation="j2ee_1_4.xsd"/><!-- **************************************************** --> <xsd:element name="ejb-jar" type="j2ee:ejb-jarType"> <xsd:annotation> <xsd:documentation> This is the root of the ejb-jar deployment descriptor. </xsd:documentation> </xsd:annotation> <xsd:key name="ejb-name-key"> <xsd:annotation> <xsd:documentation> The ejb-name element contains the name of an enterprise bean. The name must be unique within the ejb-jar file. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="j2ee:enterprise-beans/*"/> <xsd:field xpath="j2ee:ejb-name"/> </xsd:key> <xsd:keyref name="ejb-name-references" refer="j2ee:ejb-name-key"> <xsd:annotation> <xsd:documentation> The keyref indicates the references from relationship-role-source must be to a specific ejb-name defined within the scope of enterprise-beans element. </xsd:documentation> </xsd:annotation> <xsd:selector xpath=".//j2ee:ejb-relationship-role/j2ee:relationship-role-source"/> <xsd:field xpath="j2ee:ejb-name"/> </xsd:keyref> <xsd:key name="role-name-key"> <xsd:annotation> <xsd:documentation> A role-name-key is specified to allow the references from the security-role-refs. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="j2ee:assembly-descriptor/j2ee:security-role"/> <xsd:field xpath="j2ee:role-name"/> </xsd:key> <xsd:keyref name="role-name-references" refer="j2ee:role-name-key"> <xsd:annotation> <xsd:documentation> The keyref indicates the references from security-role-ref to a specified role-name. </xsd:documentation> </xsd:annotation> <xsd:selector xpath="j2ee:enterprise-beans/*/j2ee:security-role-ref"/> <xsd:field xpath="j2ee:role-link"/> </xsd:keyref> </xsd:element><!-- **************************************************** --> <xsd:complexType name="activation-config-propertyType"> <xsd:annotation> <xsd:documentation> The activation-config-propertyType contains a name/value configuration property pair for a message-driven bean. The properties that are recognized for a particular message-driven bean are determined by the messaging type. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="activation-config-property-name" type="j2ee:xsdStringType"> <xsd:annotation> <xsd:documentation> The activation-config-property-name element contains the name for an activation configuration property of a message-driven bean. For JMS message-driven beans, the following property names are recognized: acknowledgeMode, messageSelector, destinationType, subscriptionDurability </xsd:documentation> </xsd:annotation> </xsd:element> <xsd:element name="activation-config-property-value" type="j2ee:xsdStringType"> <xsd:annotation> <xsd:documentation> The activation-config-property-value element contains the value for an activation configuration property of a message-driven bean. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="activation-configType"> <xsd:annotation> <xsd:documentation> The activation-configType defines information about the expected configuration properties of the message-driven bean in its operational environment. This may include information about message acknowledgement, message selector, expected destination type, etc. The configuration information is expressed in terms of name/value configuration properties. The properties that are recognized for a particular message-driven bean are determined by the messaging type. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="activation-config-property" type="j2ee:activation-config-propertyType" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="assembly-descriptorType"> <xsd:annotation> <xsd:documentation> The assembly-descriptorType defines application-assembly information. The application-assembly information consists of the following parts: the definition of security roles, the definition of method permissions, the definition of transaction attributes for enterprise beans with container-managed transaction demarcation and a list of methods to be excluded from being invoked. All the parts are optional in the sense that they are omitted if the lists represented by them are empty. Providing an assembly-descriptor in the deployment descriptor is optional for the ejb-jar file producer. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="security-role" type="j2ee:security-roleType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="method-permission" type="j2ee:method-permissionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="container-transaction" type="j2ee:container-transactionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="message-destination" type="j2ee:message-destinationType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="exclude-list" type="j2ee:exclude-listType" minOccurs="0"/> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="cmp-fieldType"> <xsd:annotation> <xsd:documentation> The cmp-fieldType describes a container-managed field. The cmp-fieldType contains an optional description of the field, and the name of the field. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="field-name" type="j2ee:java-identifierType"> <xsd:annotation> <xsd:documentation> The field-name element specifies the name of a container managed field. The name of the cmp-field of an entity bean with cmp-version 2.x must begin with a lowercase letter. This field is accessed by methods whose names consists of the name of the field specified by field-name in which the first letter is uppercased, prefixed by "get" or "set". The name of the cmp-field of an entity bean with cmp-version 1.x must denote a public field of the enterprise bean class or one of its superclasses. </xsd:documentation> </xsd:annotation> </xsd:element> </xsd:sequence> <xsd:attribute name="id" type="xsd:ID"/> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="cmp-versionType"> <xsd:annotation> <xsd:documentation> The cmp-versionType specifies the version of an entity bean with container-managed persistence. It is used by cmp-version elements. The value must be one of the two following: 1.x 2.x </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:enumeration value="1.x"/> <xsd:enumeration value="2.x"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="cmr-field-typeType"> <xsd:annotation> <xsd:documentation> The cmr-field-type element specifies the class of a collection-valued logical relationship field in the entity bean class. The value of an element using cmr-field-typeType must be either: java.util.Collection or java.util.Set. </xsd:documentation> </xsd:annotation> <xsd:simpleContent> <xsd:restriction base="j2ee:string"> <xsd:enumeration value="java.util.Collection"/> <xsd:enumeration value="java.util.Set"/> </xsd:restriction> </xsd:simpleContent> </xsd:complexType><!-- **************************************************** --> <xsd:complexType name="cmr-fieldType"> <xsd:annotation> <xsd:documentation> The cmr-fieldType describes the bean provider's view of a relationship. It consists of an optional description, and the name and the class type of a field in the source of a role of a relationship. The cmr-field-name element corresponds to the name used for the get and set accessor methods for the relationship. The cmr-field-type element is used only for collection-valued cmr-fields. It specifies the type of the collection that is used. </xsd:documentation> </xsd:annotation> <xsd:sequence> <xsd:element name="description" type="j2ee:descriptionType" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="cmr-field-name" type="j2ee:string"> <xsd:annotation> <xsd:documentation>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -