测试运行结果如下:
    -- Initializing bean access.   -- Succeeded initializing bean access through Home interface.   -- Execution time: 5458 ms.

解决方案 »

  1.   

    这是实现类中ejbCreate中的插入数据的主要代码:
       try{
            System.out.println("ejbCreate Called");
            this.shancbz=shancbz;
            this.xiwbz=xiwbz;
            conn=getConnection();
            pstmt=conn.prepareStatement("insert into  Aall(shancbz,xiwbz) values (?,?)"); //插入数据
            pstmt.setString(1,shancbz);
            pstmt.setString(2,xiwbz);
            pstmt.executeUpdate();
            return  new   BMPBEANPK(shancbz);
          }      请提示
      

  2.   

    bMPBEANHome.ejbInsertAall("3","H");

    bMPBEANHome.create()有什么关系么?
      

  3.   

    嗯,
    bMPBEANHome.ejbInsertAall("3","H");
    换成
    bMPBEANHome.ejbCreate("3","H");
      

  4.   

    ejbInsertAall是我调用ejbHomeejbInsertAall,
           当我换成bMPBEANHome.create("3","h")后,它一定要我返回,
           Your BMP ejbCreate should not be returning null.
           请速复!