EJB3的XML Schema第十四讲

result-type-mappingType 用在query 元素中来指定由选择方法的查询返回的抽象schema 类型是否被映射到EJBLocalObject 或EJBObject 类型。
它的值必须是Local 或Remote。
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="javaee:string">
<xsd:enumeration value="Local"/>
<xsd:enumeration value="Remote"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- **************************************************** -->
<xsd:complexType name="security-identityType">
<xsd:annotation>
<xsd:documentation>
security-identityType 指定了调用者的安全标识是否用于企业bean 方法的执行,或者是否使用run-as 标识。它包含一个可选的安全标识的描述和规范。
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="description" type="javaee:descriptionType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:choice>
<xsd:element name="use-caller-identity" type="javaee:emptyType">
<xsd:annotation>
<xsd:documentation>
use-caller-identity 元素指定了调用者的安全标识用作企业bean 方法执行的安全标识。
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="run-as" type="javaee:run-asType"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="id" type="xsd:ID"/>
</xsd:complexType>
<xsd:complexType name="session-beanType">
<xsd:annotation>
<xsd:documentation>
session-beanType 声明会话bean。这个声明包括:
- 一个可选的描述。
- 一个可选的显示名称。
- 可选的图标元素,这个元素包含了一个小的和大的图标文件名。
- 一个分配到部署描述中企业bean 的唯一名称。
- 一个可选的mapped-name 元素,它可以被用于提供供应商特有的部署信息,
例如会话bean 的远程home/业务接口的物理jndi-name。这个元素不要求所有的实现都支持它。使用这个元素的应用都是不可移植的。
- 所有远程或本地业务接口的名称,如果有的话。
- 会话bean 的远程home 核remote 接口的名称,如果有的话。
- 会话bean 本地home 和local 接口的名称,如果有的话。
- 会话bean 的web 服务终端接口的名称,如果有的话。
- 会话bean 的实现类。
- 会话bean 的状态管理类型。
- 可选的bean 的超时方法的声明。
- 可选的会话bean 的事务管理类型。如果没有定义,则缺省是Container。
- 可选的会话bean 类和/或超类的around-invoke 方法列表.
- 可选的bean 的环境条目的声明。
- 可选的bean 的EJB 引用的声明。
- 可选的bean 的本地EJB 引用的声明。
- 可选的bean 的web 服务引用的声明。
- 可选的安全角色引用声明。
- 可选的用于bean 方法执行的安全标识声明。
- 可选的bean 的资源管理器连接工厂引用声明。
- 可选的bean 的资源环境引用声明
- 可选的bean 的消息目的地引用声明。
如果可选的元素没有被指定,则忽略它们。

你可能感兴趣的:(应用服务器,bean,xml,ejb,企业应用)