📄 ejb-jar_2_0.dtd
字号:
<res-auth>Application</res-auth> <res-auth>Container</res-auth>Used in: resource-ref--><!ELEMENT res-auth (#PCDATA)><!--The res-ref-name element specifies the name of a resource managerconnection factory reference. The name is a JNDI name relative to thejava:comp/env context. The name must be unique within an enterprise bean.Used in: resource-ref--><!ELEMENT res-ref-name (#PCDATA)><!--The res-sharing-scope element specifies whether connections obtainedthrough the given resource manager connection factory reference can beshared. The value of this element, if specified, must be one of thetwo following: <res-sharing-scope>Shareable</res-sharing-scope> <res-sharing-scope>Unshareable</res-sharing-scope>The default value is Shareable.Used in: resource-ref--><!ELEMENT res-sharing-scope (#PCDATA)><!--The res-type element specifies the type of the data source. The typeis specified by the fully qualified Java language class or interfaceexpected to be implemented by the data source.Used in: resource-ref--><!ELEMENT res-type (#PCDATA)><!--The resource-env-ref element contains a declaration of an enterprise bean'sreference to an administered object associated with a resourcein the enterprise bean's environment. It consists of an optionaldescription, the resource environment reference name, and anindication of the resource environment reference type expected bythe enterprise bean code.Used in: entity, message-driven, sessionExample:<resource-env-ref> <resource-env-ref-name>jms/StockQueue</resource-env-ref-name> <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type></resource-env-ref>--><!ELEMENT resource-env-ref (description?, resource-env-ref-name, resource-env-ref-type)><!--The resource-env-ref-name element specifies the name of a resourceenvironment reference; its value is the environment entry name used inthe enterprise bean code. The name is a JNDI name relative to thejava:comp/env context and must be unique within an enterprise bean.Used in: resource-env-ref--><!ELEMENT resource-env-ref-name (#PCDATA)><!--The resource-env-ref-type element specifies the type of a resourceenvironment reference. It is the fully qualified name of a Javalanguage class or interface.Used in: resource-env-ref--><!ELEMENT resource-env-ref-type (#PCDATA)><!--The resource-ref element contains a declaration of an enterprise bean'sreference to an external resource. It consists of an optionaldescription, the resource manager connection factory reference name,the indication of the resource manager connection factory typeexpected by the enterprise bean code, the type of authentication(Application or Container), and an optional specification of theshareability of connections obtained from the resource (Shareable orUnshareable).Used in: entity, message-driven, sessionExample: <resource-ref> <res-ref-name>jdbc/EmployeeAppDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref>--><!ELEMENT resource-ref (description?, res-ref-name, res-type, res-auth, res-sharing-scope?)><!--The result-type-mapping element is used in the query element to specifywhether an abstract schema type returned by a query for a select methodis to be mapped to an EJBLocalObject or EJBObject type.The result-type-mapping element must be one of the following: <result-type-mapping>Local</result-type-mapping> <result-type-mapping>Remote</result-type-mapping>Used in: query--><!ELEMENT result-type-mapping (#PCDATA)><!--The role-link element is a reference to a defined security role. Therole-link element must contain the name of one of the security rolesdefined in the security-role elements.Used in: security-role-ref--><!ELEMENT role-link (#PCDATA)><!--The role-name element contains the name of a security role.The name must conform to the lexical rules for an NMTOKEN.Used in: method-permission, run-as, security-role, security-role-ref--><!ELEMENT role-name (#PCDATA)><!--The run-as element specifies the run-as identity to be used for theexecution of the enterprise bean. It contains an optional description, andthe name of a security role.Used in: security-identity--><!ELEMENT run-as (description?, role-name)><!--The security-identity element specifies whether the caller'ssecurity identity is to be used for the execution of the methods ofthe enterprise bean or whether a specific run-as identity is to beused. It contains an optional description and a specification of thesecurity identity to be used.Used in: entity, message-driven, session--><!ELEMENT security-identity (description?, (use-caller-identity|run-as))><!--The security-role element contains the definition of a securityrole. The definition consists of an optional description of thesecurity role, and the security role name.Used in: assembly-descriptorExample: <security-role> <description> This role includes all employees who are authorized to access the employee service application. </description> <role-name>employee</role-name> </security-role>--><!ELEMENT security-role (description?, role-name)><!--The security-role-ref element contains the declaration of a securityrole reference in the enterprise bean's code. The declaration consistsof an optional description, the security role name used in the code,and an optional link to a security role. If the security role is notspecified, the Deployer must choose an appropriate security role.The value of the role-name element must be the String used as theparameter to the EJBContext.isCallerInRole(String roleName) methodor the HttpServletRequest.isUserInRole(String role) method.Used in: entity, session--><!ELEMENT security-role-ref (description?, role-name, role-link?)><!--The session element declares an session bean. The declaration consistsof: - an optional description - an optional display name - an optional small icon file name - an optional large icon file name - a name assigned to the enterprise bean in the deployment description - the names of the session bean's remote home and remote interfaces, if any - the names of the session bean's local home and local interfaces, if any - the session bean's implementation class - the session bean's state management type - the session bean's transaction management type - an optional declaration of the bean's environment entries - an optional declaration of the bean's EJB references - an optional declaration of the bean's local EJB references - an optional declaration of the security role references - an optional declaration of the security identity to be used for the execution of the bean's methods - an optional declaration of the bean's resource manager connection factory references - an optional declaration of the bean's resource environment references.The elements that are optional are "optional" in the sense that theyare omitted when if lists represented by them are empty.Either both the local-home and the local elements or both thehome and the remote elements must be specified for the session bean.Used in: enterprise-beans--><!ELEMENT session (description?, display-name?, small-icon?,large-icon?, ejb-name, home?, remote?, local-home?, local?,ejb-class, session-type, transaction-type, env-entry*, ejb-ref*,ejb-local-ref*, security-role-ref*, security-identity?, resource-ref*,resource-env-ref*)><!--The session-type element describes whether the session bean is astateful session or stateless session.The session-type element must be one of the two following: <session-type>Stateful</session-type> <session-type>Stateless</session-type>--><!ELEMENT session-type (#PCDATA)><!--The small-icon element contains the name of a filecontaining a small (16 x 16) icon image. The filename is a relative path within the enterprise bean'sejb-jar file.The image may be either in the JPEG or GIF format.The icon can be used by tools.Used in: ejb-jar, entity, message-driven, sessionExample:<small-icon>employee-service-icon16x16.jpg</small-icon>--><!ELEMENT small-icon (#PCDATA)><!--The subscription-durability element specifies whether a JMS topicsubscription is intended to be durable or nondurable.The subscription-durability element must be one of the two following: <subscription-durability>Durable</subscription-durability> <subscription-durability>NonDurable</subscription-durability>Used in: message-driven-destination--><!ELEMENT subscription-durability (#PCDATA)><!--The trans-attribute element specifies how the container must managethe transaction boundaries when delegating a method invocation to anenterprise bean's business method.The value of trans-attribute must be one of the following: <trans-attribute>NotSupported</trans-attribute> <trans-attribute>Supports</trans-attribute> <trans-attribute>Required</trans-attribute> <trans-attribute>RequiresNew</trans-attribute> <trans-attribute>Mandatory</trans-attribute> <trans-attribute>Never</trans-attribute>Used in: container-transaction--><!ELEMENT trans-attribute (#PCDATA)><!--The transaction-type element specifies an enterprise bean'stransaction management type.The transaction-type element must be one of the two following: <transaction-type>Bean</transaction-type> <transaction-type>Container</transaction-type>Used in: message-driven, session--><!ELEMENT transaction-type (#PCDATA)><!--The unchecked element specifies that a method is not checked for authorizationby the container prior to invocation of the method.Used in: method-permission--><!ELEMENT unchecked EMPTY><!--The use-caller-identity element specifies that the caller's securityidentity be used as the security identity for the execution of theenterprise bean's methods.Used in: security-identity--><!ELEMENT use-caller-identity EMPTY><!--The ID mechanism is to allow tools that produce additional deploymentinformation (i.e., information beyond the standard deploymentdescriptor information) to store the non-standard information in aseparate file, and easily refer from these tool-specific files to theinformation in the standard deployment descriptor.Tools are not allowed to add the non-standard information into thestandard deployment descriptor.--><!ATTLIST abstract-schema-name id ID #IMPLIED><!ATTLIST acknowledge-mode id ID #IMPLIED><!ATTLIST assembly-descriptor id ID #IMPLIED><!ATTLIST cascade-delete id ID #IMPLIED><!ATTLIST cmp-field id ID #IMPLIED><!ATTLIST cmp-version id ID #IMPLIED><!ATTLIST cmr-field id ID #IMPLIED><!ATTLIST cmr-field-name id ID #IMPLIED><!ATTLIST cmr-field-type id ID #IMPLIED><!ATTLIST container-transaction id ID #IMPLIED><!ATTLIST description id ID #IMPLIED><!ATTLIST destination-type id ID #IMPLIED><!ATTLIST display-name id ID #IMPLIED><!ATTLIST ejb-class id ID #IMPLIED><!ATTLIST ejb-client-jar id ID #IMPLIED><!ATTLIST ejb-jar id ID #IMPLIED><!ATTLIST ejb-link id ID #IMPLIED><!ATTLIST ejb-local-ref id ID #IMPLIED><!ATTLIST ejb-name id ID #IMPLIED><!ATTLIST ejb-ql id ID #IMPLIED><!ATTLIST ejb-ref id ID #IMPLIED><!ATTLIST ejb-ref-name id ID #IMPLIED><!ATTLIST ejb-ref-type id ID #IMPLIED><!ATTLIST ejb-relation id ID #IMPLIED><!ATTLIST ejb-relation-name id ID #IMPLIED><!ATTLIST ejb-relationship-role id ID #IMPLIED><!ATTLIST ejb-relationship-role-name id ID #IMPLIED><!ATTLIST enterprise-beans id ID #IMPLIED><!ATTLIST entity id ID #IMPLIED><!ATTLIST env-entry id ID #IMPLIED><!ATTLIST env-entry-name id ID #IMPLIED><!ATTLIST env-entry-type id ID #IMPLIED><!ATTLIST env-entry-value id ID #IMPLIED><!ATTLIST exclude-list id ID #IMPLIED><!ATTLIST field-name id ID #IMPLIED><!ATTLIST home id ID #IMPLIED><!ATTLIST large-icon id ID #IMPLIED><!ATTLIST local id ID #IMPLIED><!ATTLIST local-home id ID #IMPLIED><!ATTLIST message-driven id ID #IMPLIED><!ATTLIST message-driven-destination id ID #IMPLIED><!ATTLIST message-selector id ID #IMPLIED><!ATTLIST method id ID #IMPLIED><!ATTLIST method-intf id ID #IMPLIED><!ATTLIST method-name id ID #IMPLIED><!ATTLIST method-param id ID #IMPLIED><!ATTLIST method-params id ID #IMPLIED><!ATTLIST method-permission id ID #IMPLIED><!ATTLIST multiplicity id ID #IMPLIED><!ATTLIST persistence-type id ID #IMPLIED><!ATTLIST prim-key-class id ID #IMPLIED><!ATTLIST primkey-field id ID #IMPLIED><!ATTLIST query id ID #IMPLIED><!ATTLIST query-method id ID #IMPLIED><!ATTLIST reentrant id ID #IMPLIED><!ATTLIST relationship-role-source id ID #IMPLIED><!ATTLIST relationships id ID #IMPLIED><!ATTLIST remote id ID #IMPLIED><!ATTLIST res-auth id ID #IMPLIED><!ATTLIST res-ref-name id ID #IMPLIED><!ATTLIST res-sharing-scope id ID #IMPLIED><!ATTLIST res-type id ID #IMPLIED><!ATTLIST resource-env-ref id ID #IMPLIED><!ATTLIST resource-env-ref-name id ID #IMPLIED><!ATTLIST resource-env-ref-type id ID #IMPLIED><!ATTLIST resource-ref id ID #IMPLIED><!ATTLIST result-type-mapping id ID #IMPLIED><!ATTLIST role-link id ID #IMPLIED><!ATTLIST role-name id ID #IMPLIED><!ATTLIST run-as id ID #IMPLIED><!ATTLIST security-identity id ID #IMPLIED><!ATTLIST security-role id ID #IMPLIED><!ATTLIST security-role-ref id ID #IMPLIED><!ATTLIST session id ID #IMPLIED><!ATTLIST session-type id ID #IMPLIED><!ATTLIST small-icon id ID #IMPLIED><!ATTLIST subscription-durability id ID #IMPLIED><!ATTLIST trans-attribute id ID #IMPLIED><!ATTLIST transaction-type id ID #IMPLIED><!ATTLIST unchecked id ID #IMPLIED><!ATTLIST use-caller-identity id ID #IMPLIED>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -