Példa

public interface Example extends javax.ejb.EJBLocalObject {

public EJBLocalHome getEJBLocalHome() throws EJBException;

public Object getPrimaryKey() throws EJBException;

public boolean isIdentical(EJBLocalObject arg0) throws EJBException;

public void remove() throws RemoveException, EJBException;

public void exampleMethod() throws RemoteException;
}

Megoldás
Ne dobjon java.rmi.RemoteException kivételt egyik metódusnál sem.


public interface Example extends javax.ejb.EJBLocalObject {

public EJBLocalHome getEJBLocalHome() throws EJBException;

public Object getPrimaryKey() throws EJBException;

public boolean isIdentical(EJBLocalObject arg0) throws EJBException;

public void remove() throws RemoveException, EJBException;

public void exampleMethod();
}