⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ejb-jar_2_0.dtd

📁 jsp开发 com.objectlearn.jdt.j2ee_3.0.1
💻 DTD
📖 第 1 页 / 共 4 页
字号:
<!--Copyright (c) 2000 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 totechnology embodied in the product that is described in this document.In particular, and without limitation, these intellectual propertyrights may include one or more of the U.S. patents listed athttp://www.sun.com/patents and one or more additional patents orpending patent applications in the U.S. and in other countries.This document and the product to which it pertains are distributedunder licenses restricting their use, copying, distribution, anddecompilation.  This document may be reproduced and distributed but maynot be changed without prior written authorization of Sun and itslicensors, if any.Third-party software, including font technology, is copyrighted andlicensed from Sun suppliers.Sun,  Sun Microsystems,  the Sun logo,  Java,  JavaServer Pages,  JavaNaming and Directory Interface,  JDBC,  JDK,  JavaMail and  andEnterprise JavaBeans are trademarks or registered trademarks of SunMicrosystems, Inc. in the U.S. and other countries.Federal Acquisitions: Commercial Software - Government Users Subject toStandard License Terms and Conditions.DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIEDCONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIEDWARRANTY OF MERCHANTABILITY, FITNESS FOR FOR A PARTICULAR PURPOSE ORNON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCHDISCLAIMERS ARE HELD TO BE LEGALLY INVALID._________________________________________________________________________Copyright (c) 2000 Sun Microsystems, Inc.,901 San Antonio Road,Palo Alto, California 94303, E'tats-Unis.Tous droits re'serve's.Sun Microsystems, Inc. a les droits de proprie'te' intellectuelsrelatants a` la technologie incorpore'e dans le produit qui est de'critdans ce document. En particulier, et sans la limitation, ces droits deproprie'te' intellectuels peuvent inclure un ou plus des brevetsame'ricains e'nume're's a` http://www.sun.com/patents et un ou lesbrevets plus supple'mentaires ou les applications de brevet en attentedans les E'tats-Unis et dans les autres pays.Ce produit ou document est prote'ge' par un copyright et distribue'avec des licences qui en restreignent l'utilisation, la copie, ladistribution, et la de'compilation.  Ce documention associe n peute^tre reproduite et distribuer, par quelque moyen que ce soit, sansl'autorisation pre'alable et e'crite de Sun et de ses bailleurs delicence, le cas e'che'ant.Le logiciel de'tenu par des tiers, et qui comprend la technologierelative aux polices de caracte`res, est prote'ge' par un copyright etlicencie' par des fournisseurs de Sun.Sun,  Sun Microsystems,  le logo Sun,  Java,  JavaServer Pages,  JavaNaming and Directory Interface,  JDBC,  JDK,  JavaMail et  andEnterprise JavaBeans sont des marques de fabrique ou des marquesde'pose'es de Sun Microsystems, Inc. aux E'tats-Unis et dans d'autrespays.LA DOCUMENTATION EST FOURNIE "EN L'E'TAT" ET TOUTES AUTRES CONDITIONS,DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENTEXCLUES, DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRISNOTAMMENT TOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, AL'APTITUDE A UNE UTILISATION PARTICULIERE OU A L'ABSENCE DECONTREFAC,ON.--><!--This is the XML DTD for the EJB 2.0 deployment descriptor.All EJB 2.0 deployment descriptors must include a DOCTYPEof the following form:  <!DOCTYPE ejb-jar PUBLIC	"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"	"http://java.sun.com/dtd/ejb-jar_2_0.dtd">--><!--The following conventions apply to all J2EE deployment descriptorelements unless indicated otherwise.- In elements that contain PCDATA, leading and trailing whitespace  in the data may be ignored.- In elements whose value is an "enumerated type", the value is  case sensitive.- 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.--><!--The ejb-jar element is the root element of the EJB deploymentdescriptor. It contains	- an optional description of the ejb-jar file	- an optional display name	- an optional small icon file name	- an optional large icon file name	- mandatory structural information about all included	  enterprise beans	- a descriptor for container managed relationships, if any	- an optional application-assembly descriptor	- an optional name of an ejb-client-jar file for the ejb-jar.--><!ELEMENT ejb-jar (description?, display-name?, small-icon?,large-icon?, enterprise-beans, relationships?, assembly-descriptor?,ejb-client-jar?)><!--The abstract-schema-name element specifies the name of the abstractschema type of an entity bean with cmp-version 2.x. It is used in EJBQL queries.For example, the abstract-schema-name for an entity bean whose localinterface is com.acme.commerce.Order might be Order.Used in: entity--><!ELEMENT abstract-schema-name (#PCDATA)><!--The acknowledge-mode element specifies whether JMS AUTO_ACKNOWLEDGE orDUPS_OK_ACKNOWLEDGE message acknowledgment semantics should be usedfor the onMessage message of a message-driven bean that uses beanmanaged transaction demarcation.The acknowledge-mode element must be one of the two following:	<acknowledge-mode>Auto-acknowledge</acknowledge-mode>	<acknowledge-mode>Dups-ok-acknowledge</acknowledge-mode>Used in: message-driven--><!ELEMENT acknowledge-mode (#PCDATA)><!--The assembly-descriptor element contains application-assembly information.The application-assembly information consists of the following parts:the definition of security roles, the definition of methodpermissions, the definition of transaction attributes forenterprise beans with container-managed transaction demarcation anda list of methods to be excluded from being invoked.All the parts are optional in the sense that they are omitted if thelists represented by them are empty.Providing an assembly-descriptor in the deployment descriptor isoptional for the ejb-jar file producer.Used in: ejb-jar--><!ELEMENT assembly-descriptor (security-role*, method-permission*,container-transaction*, exclude-list?)><!--The cascade-delete element specifies that, within a particularrelationship, the lifetime of one or more entity beans is dependentupon the lifetime of another entity bean. The cascade-delete elementcan only be specified for an ejb-relationship-role element containedin an ejb-relation element in which the other ejb-relationship-roleelement specifies a multiplicity of One.Used in: ejb-relationship-role--><!ELEMENT cascade-delete EMPTY><!--The cmp-field element describes a container-managed field. Thefield element includes an optional description of the field, and thename of the field.Used in: entity--><!ELEMENT cmp-field (description?, field-name)><!--The cmp-version element specifies the version of an entity beanwith container-managed persistence.The cmp-version element must be one of the two following:	<cmp-version>1.x</cmp-version>	<cmp-version>2.x</cmp-version>The default value of the cmp-version element is 2.x.Used in: entity--><!ELEMENT cmp-version (#PCDATA)><!--The cmr-field element describes the bean provider's view of arelationship. It consists of an optional description, and the name andthe class type of a field in the source of a role of arelationship. The cmr-field-name element corresponds to the name usedfor the get and set accessor methods for the relationship. Thecmr-field-type element is used only for collection-valuedcmr-fields. It specifies the type of the collection that is used.Used in: ejb-relationship-role--><!ELEMENT cmr-field (description?, cmr-field-name, cmr-field-type?)><!--The cmr-field-name element specifies the name of a logicalrelationship field in the entity bean class. The name of the cmr-fieldmust begin with a lowercase letter. This field is accessed by methodswhose names consist of the name of the field specified bycmr-field-name in which the first letter is uppercased, prefixed by"get" or "set".Used in: cmr-field--><!ELEMENT cmr-field-name (#PCDATA)><!--The cmr-field-type element specifies the class of acollection-valued logical relationship field in the entity beanclass. The value of the cmr-field-type element must be either:java.util.Collection or java.util.Set.Used in: cmr-field--><!ELEMENT cmr-field-type (#PCDATA)><!--The container-transaction element specifies how the containermust manage transaction scopes for the enterprise bean's methodinvocations. The element consists of an optional description, a listof method elements, and a transaction attribute. The transactionattribute is to be applied to all the specified methods.Used in: assembly-descriptor--><!ELEMENT container-transaction (description?, method+, trans-attribute)><!--The description element is used to provide text describing the parentelement.  The description element should include any information thatthe enterprise bean ejb-jar file producer wants to provide to the consumer ofthe enterprise bean ejb-jar file (i.e., to the Deployer). Typically, the toolsused by the enterprise bean ejb-jar file consumer will display the descriptionwhen processing the parent element that contains the description.Used in: cmp-field, cmr-field, container-transaction, ejb-jar,ejb-local-ref, ejb-ref, ejb-relation, ejb-relationship-role, entity,env-entry, exclude-list, message-driven, method, method-permission,query, relationship-role-source, relationships, resource-env-ref,resource-ref, run-as, security-identity, security-role,security-role-ref, session--><!ELEMENT description (#PCDATA)><!--The destination-type element specifies the type of the JMSdestination. The type is specified by the Java interface expected tobe implemented by the destination.The destination-type element must be one of the two following:<destination-type>javax.jms.Queue</destination-type><destination-type>javax.jms.Topic</destination-type>Used in: message-driven-destination--><!ELEMENT destination-type (#PCDATA)><!--The display-name element contains a short name that is intended to bedisplayed by tools.  The display name need not be unique.Used in: ejb-jar, entity, message-driven, sessionExample:<display-name>Employee Self Service</display-name>--><!ELEMENT display-name (#PCDATA)><!--The ejb-class element contains the fully-qualified name of theenterprise bean's class.Used in: entity, message-driven, sessionExample:<ejb-class>com.wombat.empl.EmployeeServiceBean</ejb-class>--><!ELEMENT ejb-class (#PCDATA)><!--The optional ejb-client-jar element specifies a JAR file that containsthe class files necessary for a client program to access theenterprise beans in the ejb-jar file.Used in: ejb-jarExample:<ejb-client-jar>employee_service_client.jar</ejb-client-jar>--><!ELEMENT ejb-client-jar (#PCDATA)><!--The ejb-link element is used in the ejb-ref or ejb-local-refelements to specify that an EJB reference is linked to anenterprise bean.The value of the ejb-link element must be the ejb-name of anenterprise bean in the same ejb-jar file or in another ejb-jarfile in the same J2EE application unit.Alternatively, the name in the ejb-link element may be composed of apath name specifying the ejb-jar containing the referenced enterprisebean with the ejb-name of the target bean appended and separated fromthe path name by "#".  The path name is relative to the ejb-jar filecontaining the enterprise bean that is referencing the enterprise bean.This allows multiple enterprise beans with the same ejb-name to beuniquely identified.Used in: ejb-local-ref, ejb-refExamples:	<ejb-link>EmployeeRecord</ejb-link>	<ejb-link>../products/product.jar#ProductEJB</ejb-link>--><!ELEMENT ejb-link (#PCDATA)><!--The ejb-local-ref element is used for the declaration of a reference toan enterprise bean's local home. The declaration consists of:	- an optional description	- the EJB reference name used in the code of the enterprise bean	  that's referencing the enterprise bean	- the expected type of the referenced enterprise bean	- the expected local home and local interfaces of the referenced	  enterprise bean	- optional ejb-link information, used to specify the referenced	  enterprise beanUsed in: entity, message-driven, session--><!ELEMENT ejb-local-ref (description?, ejb-ref-name, ejb-ref-type,		local-home, local, ejb-link?)><!--The ejb-name element specifies an enterprise bean's name. This name isassigned by the ejb-jar file producer to name the enterprise bean inthe ejb-jar file's deployment descriptor. The name must be uniqueamong the names of the enterprise beans in the same ejb-jar file.There is no architected relationship between the ejb-name in thedeployment descriptor and the JNDI name that the Deployer will assignto the enterprise bean's home.The name for an entity bean with cmp-version 2.x must conform to thelexical rules for an NMTOKEN. The name for an entity bean withcmp-version 2.x must not be a reserved literal in EJB QL.Used in: entity, message-driven, method, relationship-role-source,sessionExample:<ejb-name>EmployeeService</ejb-name>--><!ELEMENT ejb-name (#PCDATA)><!--The ejb-ql element contains the EJB QL query string that definesa finder or select query. This element is defined within the scope ofa query element whose contents specify the finder or the select methodthat uses the query. The content must be a valid EJB QL query stringfor the entity bean for which the query is specified.The ejb-ql element must be specified for all queries that areexpressible in EJB QL.Used in: queryExample:<query>    <query-method>        <method-name>ejbSelectPendingLineitems</method-name>        <method-params/>    </query-method>    <ejb-ql>SELECT OBJECT(l) FROM LineItems l WHERE l.shipped <> TRUE    </ejb-ql></query>--><!ELEMENT ejb-ql (#PCDATA)>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -