posted 18 years ago
Which of the following statements about Home methods in a bean class is incorrect for Container Managed Persistence.
A.The method must not access relationships.
B.The throws clause of the method may include the java.rmi.RemoteException.
C.The method must not access the bean's persistence state.
D.The method cannot be declared static.
E.The throws clause may include any exceptions defined by your application.
Correct answers: B.
Why is B correct, meaning why "The throws clause of the method may include the java.rmi.RemoteException" is incorrect? If the bean is a RFemote bean, the throws clause must include the RemoteException!
Miki
Miki<br /> <br />SCJP 1.4, SCBCD 1.3