This page says if the client calls remove(Object primarykey) on a session bean, then the client will get a RemoveException. THE API documentation says the client gets RemoteException... Which one is correct? ........... public void remove(java.lang.Object primaryKey) throws java.rmi.RemoteException, RemoveExceptionRemove an EJB object identified by its primary key. This method can be used only for an entity bean. An attempt to call this method on a session bean will result in a RemoteException.
posted 12 years ago
Section 6.3.2 of the spec states:
Because session objects do not have primary keys that are accessible to clients, invoking the javax.ejb.EJBHome.remove(Object primaryKey) method on a session results in the javax.ejb.RemoveException.