The home interface of a stateless session bean must declare a single create() method with no arguments. This is a requirement of the EJB specification.
部署一个实体Bean的时候出现如下错误,这又是为什么呢?Bean : CachecBean Section: 10.6.2 Warning: CMP entity beans may not define the implementation of a finder.13:44:05,515 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.3/server/default/deploy/MyCacheEJB.jar
在MyEJBHome.java文件中有如下:
public com.zznode.ejb.MyEJB create()
throws javax.ejb.CreateException,java.rmi.RemoteException;
在MyEJBSession.java文件中有如下:
public void ejbCreate() throws javax.ejb.CreateException
{
this.val = 1;
System.out.println("ejbCreate()");
}无状态sessionbean的ejbCreate()方法可以带参数吧
有状态sessionbean的ejbCreate()方法可以带参数
method with no arguments. This is a requirement of the EJB specification.
Section: 10.6.2
Warning: CMP entity beans may not define the implementation of a finder.13:44:05,515 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-3.2.3/server/default/deploy/MyCacheEJB.jar