示例

public interface ExampleHome extends javax.ejb.EJBHome {

public String findByPrimaryKey(String key);
//other methods that implement the interface
}

解决方案
对于每个 finder 方法,抛出 javax.ejb.FinderException。


public interface ExampleHome extends javax.ejb.EJBHome {

public String findByPrimaryKey(String key) throws javax.ejb.FinderException;
//other methods that implement the interface
}