示例

public class BeanClass implements javax.ejb.MessageDrivenBean {
public void ejbCreate () {
//empty body
}
//other methods that must implement the interface
}

解决方案
在 MessageDrivenBean 类中始终至少实现一个 ejbCreate() 方法。


public class BeanClass implements javax.ejb.MessageDrivenBean {
public void ejbCreate () {
//non-empty body
}
//other methods that must implement the interface
}