From
J2EE 1.3 EJB API:
public void remove(java.lang.Object primaryKey) throws java.rmi.RemoteException, RemoveException
Remove 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.
From EJB 2.0 Specification:
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 bean result in the javax.ejb.RemoveException
Leon - SCJP, SCWCD, SCBCD, ICED