创建CMP时,要把需要添加的字段的 in ejbCreate 设成true

解决方案 »

  1.   

    检查你的HomeBean中的create()的参数
      

  2.   

    HomeBean中的create:
    public Account1 create(String name, Integer balance) throws CreateException, RemoteException;
      

  3.   

    把你的client.create("xiaogui",149);
    改成:client.create("xiaogui",Integer.valueOf("149"));
      

  4.   

    我是用 ejb entitybean modeler 建立的,没有发现你所说的:     创建CMP时,要把需要添加的字段的 in ejbCreate 设成true
      

  5.   

    呵呵…… 多谢这位loveyeah(爱随风来)