posted 20 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.
They answer 2 and 5. And I answered 2,3 and 4.
As per specs correct answers are 2,3 and 4.
directly from specs...
1- javax.ejb.EJBHome.remove(Object primaryKey) method on a session results in the javax.ejb.RemoveException.
2- javax.ejb.EJBLocalHome.remove(Object primaryKey) method on a session results in the javax.ejb.RemoveException.
3- The EJBObject.getPrimaryKey() method results in a java.rmi.RemoteException.
4- The EJBLocalObject.getPrimaryKey() method results in a javax.ejb.EJBException.
Am I right?
Please clarify.
Thanks,
Mina.