cmp设置问题 你是在运行mastering EJB吧!你的bean中的getproductID的方法名写成了getproductid。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 我的ProductBean.java如下感觉没问题啊package examples;import javax.ejb.*;public abstract class ProductBean implements EntityBean { protected EntityContext ctx; public ProductBean() {} public abstract String getName(); public abstract void setName(String name); public abstract String getDescription(); public abstract void setDescription(String description); public abstract String getProductID(); public abstract void setProductID(String productID); public abstract double getBasePrice(); public abstract void setBasePrice(double basePrice); public void ejbActivate() { System.out.println("ejbActivate() called."); } public void ejbRemove() { System.out.println("ejbRemove() called."); } public void ejbPassivate() { System.out.println("ejbPassivate() called."); } public void ejbLoad() { System.out.println("ejbLoad() called."); } public void ejbStore() { System.out.println("ejbStore() called."); } public void setEntityContext(EntityContext ctx) { System.out.println("setEntityContext called"); this.ctx = ctx; } public void unsetEntityContext() { System.out.println("unsetEntityContext called"); this.ctx = null; } public void ejbPostCreate(String productID, String name, String description, double basePrice) { System.out.println("ejbPostCreate() called"); } public ProductPK ejbCreate(String productID, String name, String description, double basePrice) throws CreateException { System.out.println("ejbCreate() called"); setProductID(productID); setName(name); setDescription(description); setBasePrice(basePrice); return new ProductPK(productID); }} js如何将action中传过来的数组赋值?急急急 新浪微博页面局部刷新(非ajax,非iframe——进来就有分) weblogic+ejb3分布式事务! @JSON(name="newName")什么意思 各位高手,struts2 如何解决重复提交问题。 初学者: Hibernat 一对多关系 (添加记录问题) HashMap的排序机制?? JScrollPane 为什么不能显示JTable? 一道简单实用的java题,快来拿分 DB2中表示时间的sql数据类型常用的有哪些? jmeter好像对内存检测无能为力 关于struts的问题
感觉没问题啊package examples;
import javax.ejb.*;
public abstract class ProductBean implements EntityBean {
protected EntityContext ctx; public ProductBean() {} public abstract String getName(); public abstract void setName(String name); public abstract String getDescription(); public abstract void setDescription(String description); public abstract String getProductID(); public abstract void setProductID(String productID); public abstract double getBasePrice(); public abstract void setBasePrice(double basePrice);
public void ejbActivate() {
System.out.println("ejbActivate() called.");
} public void ejbRemove() {
System.out.println("ejbRemove() called.");
} public void ejbPassivate() {
System.out.println("ejbPassivate() called.");
} public void ejbLoad() {
System.out.println("ejbLoad() called.");
} public void ejbStore() {
System.out.println("ejbStore() called.");
} public void setEntityContext(EntityContext ctx) {
System.out.println("setEntityContext called");
this.ctx = ctx;
} public void unsetEntityContext() {
System.out.println("unsetEntityContext called");
this.ctx = null;
} public void ejbPostCreate(String productID, String name, String description, double basePrice) {
System.out.println("ejbPostCreate() called");
} public ProductPK ejbCreate(String productID, String name, String description, double basePrice)
throws CreateException {
System.out.println("ejbCreate() called");
setProductID(productID);
setName(name);
setDescription(description);
setBasePrice(basePrice); return new ProductPK(productID);
}
}