2011-11-23 22 views
0

對於集裝箱交易,我得到錯誤「跟在根元素之後的文檔中的標記必須格式良好」。對於集裝箱交易,根元素之後的文檔中的標記必須是格式良好的

在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 集裝箱 com.test.classes.EmployeePK 假 2.x的 EmployeeRemote 僱員 employeeName shareAmount shareValue 僱員 由僱員姓名 findByEmployeeName java.lang.String中查找一個僱員豆 選擇對象的(a)FROM EmployeeRemote As a 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> 

回答

0

這從ejb-jar_2_1.xsd報價應該給你答案:

的方法,INTF元素允許把一個方法元素 區分具有相同名稱的方法和 簽名之間在家庭和 組件接口中定義的乘法(例如,在企業bean的 遠程和本地接口中或者在企業bean的 家庭和遠程接口等);組件和Web服務端點接口等等。

The method-intf element must be one of the following: 

    Home 
    Remote 
    LocalHome 
    Local 
    ServiceEndpoint 
相關問題