测试运行结果如下:
-- Initializing bean access. -- Succeeded initializing bean access through Home interface. -- Execution time: 5458 ms.
-- Initializing bean access. -- Succeeded initializing bean access through Home interface. -- Execution time: 5458 ms.
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);
} 请提示
和
bMPBEANHome.create()有什么关系么?
bMPBEANHome.ejbInsertAall("3","H");
换成
bMPBEANHome.ejbCreate("3","H");
当我换成bMPBEANHome.create("3","h")后,它一定要我返回,
Your BMP ejbCreate should not be returning null.
请速复!