posted 19 years ago
Which of the following statements regarding session beans are true? [Check all correct answers]
1 Invoking javax.ejb.EJBObject.getPrimaryKey() on a session bean results in javax.ejb.EJBException been thrown.
2 Invoking javax.ejb.EJBLocalObject.getPrimaryKey() on a session bean results in javax.ejb.EJBException been thrown.
3 Invoking javax.ejb.EJBHome.remove(java.lang.Object primaryKey) on a session bean results in javax.ejb.RemoveException been thrown.
4 Invoking javax.ejb.EJBLocalHome.remove(java.lang.Object primaryKey) on a session bean results in javax.ejb.RemoveException been thrown.
5 Invoking javax.ejb.EJBHome.remove(java.lang.Object primaryKey) on a session bean results in java.rmi.RemoteException been thrown.
I feel the answer is 2,3.When we use remove(Object key) on Remote Session Bean it throws javax.ejb.RemoveException & for Local SB it throws EJBException.
Can Some one tell me whether My answer is right or not.I am not sure whether my conclusion about this is right or not because in Mock answers they gave 2 & 5.
Thanx in advance.
SCJP1.4,SCBCD1.3,SCWCD1.4(Preparing)