📄 16r.txt
字号:
<?xml version="1.0" encoding="Cp1252"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>
<ejb-jar>
<description>
This example demonstrates the use of Entity Beans.
</description>
<Enterprise-Beans>
<entity>
<description>
This Entity Bean is an example of Bean Managed Persistence
</description>
<ejb-name>savings</ejb-name>
<home>AccountHome</home>
<remote>Account</remote>
<ejb-class>SavingsAccount</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>AccountPK</prim-key-class>
<reentrant>False</reentrant>
<resource-ref>
<description>
reference to a jdbc datasource mentioned down in the DD section
</description>
<res-ref-name>jdbc/SavingsDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
<entity>
<description>
This Entity Bean is an example of Container Managed Persistence
</description>
<ejb-name>checking</ejb-name>
<home>AccountHome</home>
<remote>Account</remote>
<ejb-class>CheckingAccount</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>AccountPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-field>
<field-name>name</field-name>
</cmp-field>
<cmp-field>
<field-name>balance</field-name>
</cmp-field>
<resource-ref>
<description>
reference to a jdbc datasource mentioned down in the DD section
</description>
<res-ref-name>jdbc/CheckingDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
<session>
<description>
XML deployment descriptor created from file:
/vobs/EJB/examples/bank/teller.ser
</description>
<ejb-name>teller</ejb-name>
<home>TellerHome</home>
<remote>Teller</remote>
<ejb-class>TellerBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</Enterprise-Beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>savings</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>checking</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name>teller</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -