Joyce,
What you said is right by Specs.
I checked the API for J2EE 1.4 for EJBLocalHome and it says what you said
public void remove(Object primaryKey)
throws RemoveException,
EJBException
Remove an EJB object identified by its primary key.
This method can only be used by local clients of an entity bean.
An attempt to call this method on a session bean will result in a RemoveException. I double checked the API for J2EE SDK 1.3 for EJBLocalHome (I think it has some typo or mistakes)
public void remove(java.lang.Object primaryKey)
throws RemoveException,
EJBExceptionRemove an EJB object identified by its primary key.
This method can only be used by local clients of an entity bean.
An attempt to call this method on a session bean will result in an EJBException. So what do you guys think is the better API version to check on? [ April 10, 2004: Message edited by: Santosh Ram ]