📄 ejb-jar_1_1.dtd
字号:
<!--Copyright 1999 Sun Microsystems, Inc. 901 San Antonio Road,Palo Alto, CA 94303, U.S.A. All rights reserved. This product or document is protected by copyright and distributedunder licenses restricting its use, copying, distribution, anddecompilation. No part of this product or documentation may bereproduced in any form by any means without prior written authorizationof 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, JavaServer Pages, Java Naming and Directory Interface, JDBC, JDK, JavaMail and Enterprise JavaBeans, are trademarks or registered trademarks of Sun Microsystems, Inc in the U.S. and other countries.All SPARC trademarks are used under license and are trademarksor registered trademarks of SPARC International, Inc.in the U.S. and other countries. Products bearing SPARCtrademarks are based upon an architecture developed by Sun Microsystems, Inc. PostScript is a registered trademark of Adobe Systems, Inc. Federal Acquisitions: Commercial Software - Government Users Subject to Standard License Terms and Conditions. DOCUMENTATION IS PROVIDED "AS IS" AND ALL EXPRESS OR IMPLIEDCONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANYIMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULARPURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPTTO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLYINVALID._________________________________________________________________________Copyright 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303, Etats-Unis. Tous droits re'serve's. Ce produit ou document est prote'ge' par un copyright et distribue' avec des licences qui en restreignent l'utilisation, la copie, la distribution,et la de'compilation. Aucune partie de ce produit ou de sa documentationassocie'e ne peut e^tre reproduite sous aucune forme, par quelque moyen que ce soit, sans l'autorisation pre'alable et e'crite de Sun et de ses bailleurs de licence, s'il y en a. Le logiciel de'tenu par des tiers, et qui comprend la technologie relative aux polices de caracte`res, est prote'ge' par un copyright et licencie' par des fournisseurs de Sun. Sun, Sun Microsystems, le logo Sun, Solaris, Java, JavaServer Pages, Java Naming and Directory Interface, JDBC, JDK, JavaMail, et Enterprise JavaBeans, sont des marques de fabrique ou des marques de'pose'es de Sun Microsystems, Inc. aux Etats-Unis et dans d'autres pays. Toutes les marques SPARC sont utilise'es sous licence et sontdes marques de fabrique ou des marques de'pose'es de SPARCInternational, Inc. aux Etats-Unis et dansd'autres pays. Les produits portant les marques SPARC sontbase's sur une architecture de'veloppe'e par Sun Microsystems, Inc. Postcript est une marque enregistre'e d'Adobe Systems Inc. LA DOCUMENTATION EST FOURNIE "EN L'ETAT" ET TOUTES AUTRES CONDITIONS,DECLARATIONS ET GARANTIES EXPRESSES OU TACITES SONT FORMELLEMENT EXCLUES,DANS LA MESURE AUTORISEE PAR LA LOI APPLICABLE, Y COMPRIS NOTAMMENTTOUTE GARANTIE IMPLICITE RELATIVE A LA QUALITE MARCHANDE, A L'APTITUDEA UNE UTILISATION PARTICULIERE OU A L'ABSENCE DE CONTREFACON.--><!--This is the XML DTD for the EJB 1.1 deployment descriptor.--><!--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 method permissions,and the definition of transaction attributes for enterprise beans withcontainer-managed transaction demarcation.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*)><!--The cmp-field element describes a container-managed field. The fieldelement includes an optional description of the field, and the name ofthe field.Used in: entity--><!ELEMENT cmp-field (description?, field-name)><!--The container-transaction element specifies how the container mustmanage transaction scopes for the enterprise bean's method invocations.The element consists of an optional description, a list of methodelements, and a transaction attribute.The transaction attribute is tobe applied to all the specified methods.Used in: assembly-descriptor--><!ELEMENT container-transaction (description?, method+, trans-attribute)><!--The description element is used by the ejb-jar file producer to providetext describing the parent element.The description element should include any information that the ejb-jarfile producer wants to provide to the consumer of the ejb-jar file(i.e. to the Deployer). Typically, the tools used by the ejb-jar fileconsumer will display the description when processing the parentelement.Used in: cmp-field, container-transaction, ejb-jar, entity, env-entry,ejb-ref, method, method-permission, resource-ref, security-role,security-role-ref, and session.--><!ELEMENT description (#PCDATA)><!--The display-name element contains a short name that is intended to bedisplay by tools.Used in: ejb-jar, session, and entityExample: <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 and 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 the enterprisebeans in the ejb-jar file. The Deployer should make the ejb-client JARfile accessible to the client's class-loader.Used in: ejb-jarExample: <ejb-client-jar>employee_service_client.jar</ejb-client-jar>--><!ELEMENT ejb-client-jar (#PCDATA)><!--The ejb-jar element is the root element of the EJB deploymentdescriptor. It contains an optional description of the ejb-jar file,optional display name, optional small icon file name, optional largeicon file name, mandatory structural information about all includedenterprise beans, optional application-assembly descriptor, and anoptional name of an ejb-client-jar file for the ejb-jar.--><!ELEMENT ejb-jar (description?, display-name?, small-icon?, large-icon?, enterprise-beans, assembly-descriptor?, ejb-client-jar?)><!--The ejb-link element is used in the ejb-ref element to specify that anEJB reference is linked to another enterprise bean in the ejb-jarfile.The value of the ejb-link element must be the ejb-name of an enterprisebean in the same ejb-jar file, or in another ejb-jar file in the sameJ2EE application unit.Used in: ejb-refExample: <ejb-link>EmployeeRecord</ejb-link>--><!ELEMENT ejb-link (#PCDATA)><!--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 unique amongthe names of the enterprise beans in the same ejb-jar file.The enterprise bean code does not depend on the name; therefore thename can be changed during the application-assembly process withoutbreaking the enterprise bean's function.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 must conform to the lexical rules for an NMTOKEN.Used in: entity, method, and sessionExample: <ejb-name>EmployeeService</ejb-name>--><!ELEMENT ejb-name (#PCDATA)><!--The ejb-ref element is used for the declaration of a reference toanother enterprise bean's home. The declaration consists of an optionaldescription; the EJB reference name used in the code of the referencingenterprise bean; the expected type of the referenced enterprise bean;the expected home and remote interfaces of the referenced enterprisebean; and an optional ejb-link information.The optional ejb-link element is used to specify the referencedenterprise bean. It is used typically in ejb-jar files that contain anassembled application.Used in: entity and session--><!ELEMENT ejb-ref (description?, ejb-ref-name, ejb-ref-type, home, remote, ejb-link?)><!--The ejb-ref-name element contains the name of an EJB reference. The EJBreference is an entry in the enterprise bean's environment.It is recommended that name is prefixed with "ejb/".Used in: ejb-refExample: <ejb-ref-name>ejb/Payroll</ejb-ref-name>--><!ELEMENT ejb-ref-name (#PCDATA)><!--The ejb-ref-type element contains the expected type of the referencedenterprise bean.The ejb-ref-type element must be one of the following: <ejb-ref-type>Entity</ejb-ref-type> <ejb-ref-type>Session</ejb-ref-type>Used in: ejb-ref--><!ELEMENT ejb-ref-type (#PCDATA)><!--The enterprise-beans element contains the declarations of one or moreenterprise beans.--><!ELEMENT enterprise-beans (session | entity)+><!--The entity element declares an entity bean. The declaration consistsof: an optional description; optional display name; optional small iconfile name; optional large icon file name; a name assigned to theenterprise bean in the deployment descriptor; the names of the entitybean's home and remote interfaces; the entity bean's implementationclass; the entity bean's persistence management type; the entity bean'sprimary key class name; an indication of the entity bean's reentrancy;an optional list of container-managed fields; an optional specificationof the primary key field; an optional declaration of the bean'senvironment entries; an optional declaration of the bean's EJBreferences; an optional declaration of the security role references;and an optional declaration of the bean's resource manager connectionfactory references.The optional primkey-field may be present in the descriptor if theentity's persistency-type is Container.The other elements that are optional are "optional" in the sense thatthey are omitted if the lists represented by them are empty.At least one cmp-field element must be present in the descriptor if theentity's persistency-type is Container, and none must not be present ifthe entity's persistence-type is Bean.Used in: enterprise-beans--><!ELEMENT entity (description?, display-name?, small-icon?, large-icon?, ejb-name, home, remote, ejb-class, persistence-type, prim-key-class, reentrant, cmp-field*, primkey-field?, env-entry*, ejb-ref*, security-role-ref*, resource-ref*)><!--The env-entry element contains the declaration of an enterprise bean'senvironment entries. The declaration consists of an optionaldescription, the name of the environment entry, and an optional value.Used in: entity and session--><!ELEMENT env-entry (description?, env-entry-name, env-entry-type, env-entry-value?)><!--The env-entry-name element contains the name of an enterprise bean'senvironment entry.Used in: env-entryExample: <env-entry-name>minAmount</env-entry-name>--><!ELEMENT env-entry-name (#PCDATA)><!--The env-entry-type element contains the fully-qualified Java type ofthe environment entry value that is expected by the enterprise bean'scode.The following are the legal values of env-entry-type:java.lang.Boolean, java.lang.String, java.lang.Integer,java.lang.Double, java.lang.Byte, java.lang.Short, java.lang.Long, andjava.lang.Float.Used in: env-entryExample: <env-entry-type>java.lang.Boolean</env-entry-type>--><!ELEMENT env-entry-type (#PCDATA)><!--The env-entry-value element contains the value of an enterprise bean'senvironment entry.Used in: env-entryExample: <env-entry-value>100.00</env-entry-value>--><!ELEMENT env-entry-value (#PCDATA)><!--The field-name element specifies the name of a container managed field.The name must be a public field of the enterprise bean class or one ofits superclasses.Used in: cmp-fieldExample: <field-name>firstName</field-Name>--><!ELEMENT field-name (#PCDATA)><!--The home element contains the fully-qualified name of the enterprisebean's home interface.Used in: ejb-ref, entity, and sessionExample: <home>com.aardvark.payroll.PayrollHome</home>--><!ELEMENT home (#PCDATA)><!--The large-icon element contains the name of a file containing a large(32 x 32) icon image. The file name is relative path within the ejb-jarfile.The image must be either in the JPEG or GIF format, and the file namemust end with the suffix ".jpg" or ".gif" respectively. The icon canbe used by tools.Example: <large-icon>employee-service-icon32x32.jpg</large-icon>--><!ELEMENT large-icon (#PCDATA)><!--The method element is used to denote a method of an enterprise bean'shome or remote interface, or a set of methods. The ejb-name elementmust be the name of one of the enterprise beans in declared in thedeployment descriptor; the optional method-intf element allows todistinguish between a method with the same signature that is defined inboth the home and remote interface; the method-name element specifiesthe method name; and the optional method-params elements identify asingle method among multiple methods with an overloaded method name.There are three possible styles of the method element syntax:1. <method> <ejb-name>EJBNAME</ejb-name> <method-name>*</method-name> </method> This style is used to refer to all the methods of the specified enterprise bean's home and remote interfaces.2. <method> <ejb-name>EJBNAME</ejb-name> <method-name>METHOD</method-name> </method>> This style is used to refer to the specified method of the specified enterprise bean. If there are multiple methods with the same overloaded name, the element of this style refers to all the methods with the overloaded name.3. <method> <ejb-name>EJBNAME</ejb-name> <method-name>METHOD</method-name> <method-params> <method-param>PARAM-1</method-param> <method-param>PARAM-2</method-param> ... <method-param>PARAM-n</method-param> </method-params> <method> This style is used to refer to a single method within a set of methods with an overloaded name. PARAM-1 through PARAM-n are the fully-qualified Java types of the method's input parameters (if the method has no input arguments, the method-params element contains no method-param elements). Arrays are specified by the array element's type, followed by one or more pair of square brackets (e.g. int[][]).Used in: method-permission and container-transactionExamples:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -