CMP没用过,看看《精通EJB》里有例子吧,有hibernate,要CMP干什么。。

解决方案 »

  1.   

    楼上的,我的油箱是[email protected]
    请您看见后回复我.万分感谢
      

  2.   

    我试者写了个cmp的程序,可是在jbosscmp-jdbc.xml文件中老实出现异常,使得jboss运行不了,这是为什么呀???
    异常是:
    10:32:44,343 ERROR [XmlFileLoader] XmlFileLoader: File file:/C:/Program Files/JB
    oss/server/default/deploy/product.jar/META-INF/jbosscmp-jdbc.xml process error.
    Line: 57. Error message: The content of element type "entity" must match "(ejb-n
    ame,(datasource,datasource-mapping)?,create-table?,remove-table?,read-only?,read
    -time-out?,row-locking?,pk-constraint?,read-ahead?,list-cache-max?,fetch-size?,t
    able-name?,cmp-field*,load-groups?,eager-load-group?,lazy-load-groups?,query*)".这个到底是什么格式呀????????