对于容器事务,我收到“根元素之后的文档中的标记必须格式正确”的错误。
ejb-jar.xml 代码如下:
http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">EmployeeDetails EmployeeDetails EmployeeBean com.test.intrfc.EmployeeHome com.test.intrfc.EmployeeRemote com.test.classes.EmployeeBean Container com. test.classes.EmployeePK false 2.x EmployeeRemote employeeid employeeName shareAmount shareValue employeeid 通过员工的名字查找一个Employee bean findByEmployeeName java.lang.String Select Object(a) FROM EmployeeRemote As a Where a.employeeName=?1
<container-transaction>
<method>
<ejb-name>EmployeeBean</ejb-name>
<method-intf>EmployeeHome</method-intf>
<method-name>remove</method-name>
<method-params>
<method-param>java.lang.Object</method-param>
</method-params>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>